68 {
69 float stomach_volume = player.m_PlayerStomach.GetStomachVolume();
71 {
72 int roll = Math.RandomInt(0, 100);
74 if (roll < chanceOfVomit)
75 {
76 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
77
78 if (symptom)
79 {
80 CachedObjectsParams.PARAM1_FLOAT.param1 = 50.0;
81 symptom.
SetParam(CachedObjectsParams.PARAM1_FLOAT);
83 player.m_AgentPool.ReduceAgent(
eAgents.SALMONELLA, 30.0);
84
89
92
95 }
96 }
97 }
98
100
102 {
105 player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_PAIN_LIGHT);
106 }
107
109 {
112 {
115
117 }
118 }
119
120
121 }
static const float EVENT_INTERVAL_MIN
static const int WATER_DRAIN_FROM_VOMIT
static const int CHANCE_OF_VOMIT
static const int ENERGY_DRAIN_FROM_VOMIT
static const float STOMACH_MIN_VOLUME
static const float EVENT_INTERVAL_MAX
static const int CHANCE_OF_VOMIT_AGENT
void SetDuration(float duration)