Пример #1
0
 public static void DeactivatePhalanx(TroopScript troopThatUsedPhalanx)
 {
     troopThatUsedPhalanx.GetArmor().Defence-=Mathf.RoundToInt(troopThatUsedPhalanx.GetArmor().Defence/3);
     troopThatUsedPhalanx.SetBaseMovement(troopThatUsedPhalanx.GetBaseMovement()+1);
 }
Пример #2
0
 public static void ActivatePhalanx(TroopScript troopThatUsesPhalanx)
 {
     troopThatUsesPhalanx.GetArmor().Defence+=Mathf.RoundToInt(troopThatUsesPhalanx.GetArmor().Defence/2);
     troopThatUsesPhalanx.SetBaseMovement(troopThatUsesPhalanx.GetBaseMovement()-1);
 }