64 {
65 if (player.GetSingleAgentCount(
eAgents.HEAVYMETAL) <= SYMPTOMFALLOFF_THRESHOLD3)
66 {
67 float waterLoss = (deltaT * (WATER_LOSS_HEAVYMETAL_MAX *
Math.
Max(WATER_LOSS_HEAVYMETAL_MIN, player.GetSingleAgentCountNormalized(
eAgents.HEAVYMETAL))));
68 player.GetStatWater().Add(-waterLoss);
69 }
70
72
73 if (player.GetSingleAgentCount(
eAgents.HEAVYMETAL) <= SYMPTOMFALLOFF_THRESHOLD2)
74 {
75 player.m_AgentPool.AddAgent(
eAgents.HEAVYMETAL, -0.5);
76 }
77
78 if (player.GetSingleAgentCount(
eAgents.HEAVYMETAL) <= SYMPTOMFALLOFF_THRESHOLD3)
79 {
81 {
82 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_HAND_SHIVER);
84
86 }
87 }
88 }
static proto float Max(float x, float y)
Returns bigger of two given values.
static float RandomFloatInclusive(float min, float max)
Returns a random float number between and min [inclusive] and max [inclusive].