Update breathing disruption effects each frame.
Korean: 호흡곤란 효과 프레임 업데이트
Handles recovery when torso health > 50% and removes expired effects. Should be called each game frame (60fps).
Current player state
Time since last frame (milliseconds)
Current game time
Updated player state with modified breathing disruption
// In game loop (60fps)function gameUpdate(deltaTime: number) { player = updateBreathingDisruption(player, deltaTime, Date.now()); // Stamina regen now reflects breathing disruption penalty const regenRate = BreathingDisruptionSystem.calculateStaminaRegen( player, BASE_STAMINA_REGEN );} Copy
// In game loop (60fps)function gameUpdate(deltaTime: number) { player = updateBreathingDisruption(player, deltaTime, Date.now()); // Stamina regen now reflects breathing disruption penalty const regenRate = BreathingDisruptionSystem.calculateStaminaRegen( player, BASE_STAMINA_REGEN );}
Update breathing disruption effects each frame.
Korean: 호흡곤란 효과 프레임 업데이트
Handles recovery when torso health > 50% and removes expired effects. Should be called each game frame (60fps).