54 {
55 if (player.GetSingleAgentCount(
eAgents.HEAVYMETAL) <= SYMPTOMFALLOFF_THRESHOLD3)
56 {
57 float waterLoss = (deltaT * (WATER_LOSS_HEAVYMETAL_MAX *
Math.
Max(WATER_LOSS_HEAVYMETAL_MIN, player.GetSingleAgentCountNormalized(
eAgents.HEAVYMETAL))));
58 player.GetStatWater().Add(-waterLoss);
59 }
60
62
63 if (player.GetSingleAgentCount(
eAgents.HEAVYMETAL) <= SYMPTOMFALLOFF_THRESHOLD2)
64 {
65 player.m_AgentPool.AddAgent(
eAgents.HEAVYMETAL, -0.5);
66 }
67
68 if (player.GetSingleAgentCount(
eAgents.HEAVYMETAL) <= SYMPTOMFALLOFF_THRESHOLD3)
69 {
71 {
72 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_HAND_SHIVER);
74
76 }
77 }
78 }
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].