3 private const float TOXICITY_CLEANUP_PER_SEC = 1;
4 private const float VOMIT_THRESHOLD = 70;
15 override bool ActivateCondition(
PlayerBase player)
20 override bool DeactivateCondition(
PlayerBase player)
25 override void OnTick(
PlayerBase player,
float deltaT)
27 player.GetStatToxicity().Add( -TOXICITY_CLEANUP_PER_SEC * deltaT );
28 if( player.GetStatToxicity().Get() > VOMIT_THRESHOLD )
30 SymptomBase symptom = player.GetSymptomManager().QueueUpPrimarySymptom(SymptomIDs.SYMPTOM_VOMIT);
34 symptom.SetDuration(
Math.RandomIntInclusive(4,8));