53 {
55 {
56 float currentHealth01 = GetHealth01();
57 float currentEnergy01 = GetCompEM().GetEnergy0To1();
58
59
60 SetHealth01("","",Math.Min(currentHealth01,currentEnergy01));
61
62 GetCompEM().SetEnergy0To1(GetHealth01());
63 }
64 }
proto native CGame GetGame()