3 private const float HYDRATED_TRESHOLD = 3500;
4 private const float THIRSTY_TRESHOLD = 2500;
5 private const float VERY_THIRSTY_TRESHOLD = 1500;
6 private const float FATALLY_THIRSTY_TRESHOLD = 0;
7 private const float DEC_TRESHOLD_LOW = 0;
8 private const float DEC_TRESHOLD_MED = -0.2;
9 private const float DEC_TRESHOLD_HIGH = -0.85;
10 private const float INC_TRESHOLD_LOW = 0;
11 private const float INC_TRESHOLD_MED = 0.2;
12 private const float INC_TRESHOLD_HIGH = 0.85;
18 override int GetNotifierType()
24 override void DisplayTendency(
float delta)
27 int tendency = CalculateTendency(delta, INC_TRESHOLD_LOW, INC_TRESHOLD_MED, INC_TRESHOLD_HIGH, DEC_TRESHOLD_LOW, DEC_TRESHOLD_MED, DEC_TRESHOLD_HIGH);
36 dis_elm.SetTendency(tendency);
37 dis_elm.SetSeriousnessLevel(water_level);
42 override void DisplayBadge()
44 float water =
m_Player.GetStatWater().Get();
45 if (water >= HYDRATED_TRESHOLD)
49 else if (water <= THIRSTY_TRESHOLD)
53 else if (water <= VERY_THIRSTY_TRESHOLD)
57 else if (water <= FATALLY_THIRSTY_TRESHOLD)
63 override void HideBadge()
69 override protected float GetObservedValue()
71 return m_Player.GetStatWater().Get();