34 {
35 int rand = Math.RandomInt(0,10);
37
38 if ( baseTemp <= GameConstants.COLD_AREA_TEMPERATURE_THRESHOLD )
39 {
40 int randQ = Math.RandomFloat(10,80);
42
43 if ( rand >= 9 )
44 {
46 SetHealth( "", "", GetMaxHealth()*0.1 );
47
48 }
49 else
50 {
52 SetHealth( "", "", GetMaxHealth()*0.4 );
53 }
54 }
55 else
56 {
57 if ( rand > 6 )
58 {
60 SetHealth( "", "", GetMaxHealth()*0.1 );
61 }
62 else if ( rand > 2 )
63 {
65 SetHealth( "", "", GetMaxHealth()*0.4 );
66 }
67 }
68 }
proto native Mission GetMission()
void ChangeFoodStage(FoodStageType new_food_stage_type)
override bool SetQuantity(float value, bool destroy_config=true, bool destroy_forced=false, bool allow_client=false, bool clamp_to_stack_max=true)
float GetBaseEnvTemperature()
proto native CGame GetGame()