public static void DeactivatePhalanx(TroopScript troopThatUsedPhalanx) { troopThatUsedPhalanx.GetArmor().Defence-=Mathf.RoundToInt(troopThatUsedPhalanx.GetArmor().Defence/3); troopThatUsedPhalanx.SetBaseMovement(troopThatUsedPhalanx.GetBaseMovement()+1); }
public static void ActivatePhalanx(TroopScript troopThatUsesPhalanx) { troopThatUsesPhalanx.GetArmor().Defence+=Mathf.RoundToInt(troopThatUsesPhalanx.GetArmor().Defence/2); troopThatUsesPhalanx.SetBaseMovement(troopThatUsesPhalanx.GetBaseMovement()-1); }