static void SetTroopBaseStatistics (TroopScript troop,int baseAtk, int baseDef, int baseHitPoints, int baseSpeed, int People, int baseMovement, int BaseRange){ troop.SetBaseAttack(baseAtk); troop.SetBaseDefence(baseDef); troop.SetBaseHitpoints(baseHitPoints); troop.SetBaseSpeed (baseSpeed); troop.SetNumber(People); troop.SetBaseMovement(baseMovement); troop.SetBaseRange(BaseRange); }
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); }