3 protected float m_EnergyDelta;
4 protected float m_LastEnergyLevel;
16 override bool ActivateCondition(
PlayerBase player)
21 override bool DeactivateCondition(
PlayerBase player)
31 override void OnTick(
PlayerBase player,
float deltaT)
34 float energy = player.GetStatEnergy().Get();
35 float metabolic_speed = MiscGameplayFunctions.GetEnergyMetabolicSpeed(
m_MovementState.m_iMovement);
38 metabolic_speed *= modifier;
40 player.GetStatEnergy().Add( -metabolic_speed * deltaT );
44 if ((player.GetStomach().GetDigestingType() &
PlayerStomach.DIGESTING_ENERGY) == 0)
45 player.AddHealth(
"GlobalHealth",
"Health", -
PlayerConstants.LOW_ENERGY_DAMAGE_PER_SEC * deltaT );