3 float m_LastWaterLevel;
15 override bool ActivateCondition(
PlayerBase player)
25 override bool DeactivateCondition(
PlayerBase player)
30 override void OnTick(
PlayerBase player,
float deltaT)
33 float water = player.GetStatWater().Get();
34 float metabolic_speed = MiscGameplayFunctions.GetWaterMetabolicSpeed(
m_MovementState.m_iMovement);
37 metabolic_speed *= modifier;
39 player.GetStatWater().Add( (-metabolic_speed * deltaT) );
44 if ((player.GetStomach().GetDigestingType() &
PlayerStomach.DIGESTING_WATER) == 0)
45 player.AddHealth(
"GlobalHealth",
"Health", -
PlayerConstants.LOW_WATER_DAMAGE_PER_SEC * deltaT );