3 private const float MINIMAL_WATER_TO_REGENRATE = 2500;
4 private const float MINIMAL_ENERGY_TO_REGENRATE = 4000;
5 private const float MINIMAL_BLOOD_TO_REGENRATE = 5000;
6 private const float MINIMAL_BLOOD_REQUIRED_TO_REGENERATE_HEALTH = 5000;
7 private const float BONE_HEALTH_INCREMENT_PER_SEC = 0.25;
17 override bool ActivateCondition(
PlayerBase player)
19 if ( player.GetHealth(
"GlobalHealth",
"Blood") >= MINIMAL_BLOOD_TO_REGENRATE && player.GetStatWater().Get() >= MINIMAL_WATER_TO_REGENRATE && player.GetStatEnergy().Get() >= MINIMAL_ENERGY_TO_REGENRATE )
33 override bool DeactivateCondition(
PlayerBase player)
35 if ( player.GetHealth(
"GlobalHealth",
"Blood") < MINIMAL_BLOOD_TO_REGENRATE && player.GetStatWater().Get() < MINIMAL_WATER_TO_REGENRATE && player.GetStatEnergy().Get() < MINIMAL_ENERGY_TO_REGENRATE )
45 override void OnTick(
PlayerBase player,
float deltaT)