69 float stomach_volume = player.m_PlayerStomach.GetStomachVolume();
70 if (stomach_volume >= STOMACH_MIN_VOLUME)
72 int roll =
Math.RandomInt(0, 100);
73 int chanceOfVomit = CHANCE_OF_VOMIT + (CHANCE_OF_VOMIT_AGENT * player.GetSingleAgentCountNormalized(
eAgents.SALMONELLA));
74 if (roll < chanceOfVomit)
76 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
82 symptom.SetDuration(5);
83 player.m_AgentPool.ReduceAgent(
eAgents.SALMONELLA, 30.0);
85 if (
m_Player.GetStatWater().Get() > WATER_DRAIN_FROM_VOMIT)
86 m_Player.GetStatWater().Add(-1 * WATER_DRAIN_FROM_VOMIT);
87 if (
m_Player.GetStatEnergy().Get() > ENERGY_DRAIN_FROM_VOMIT)
88 m_Player.GetStatEnergy().Add(-1 * ENERGY_DRAIN_FROM_VOMIT);
94 m_ExhaustionTimer = 0;
104 m_NextEvent =
Math.RandomFloatInclusive(EVENT_INTERVAL_MIN, EVENT_INTERVAL_MAX);
105 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_PAIN_LIGHT);
110 m_ExhaustionTimer += deltaT;
111 if (m_ExhaustionTimer >= 45)
116 m_Exhaustion =
false;