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);
	}
示例#2
0
 public static void DeactivatePhalanx(TroopScript troopThatUsedPhalanx)
 {
     troopThatUsedPhalanx.GetArmor().Defence-=Mathf.RoundToInt(troopThatUsedPhalanx.GetArmor().Defence/3);
     troopThatUsedPhalanx.SetBaseMovement(troopThatUsedPhalanx.GetBaseMovement()+1);
 }
示例#3
0
 public static void ActivatePhalanx(TroopScript troopThatUsesPhalanx)
 {
     troopThatUsesPhalanx.GetArmor().Defence+=Mathf.RoundToInt(troopThatUsesPhalanx.GetArmor().Defence/2);
     troopThatUsesPhalanx.SetBaseMovement(troopThatUsesPhalanx.GetBaseMovement()-1);
 }