public void OnTacticalBattleStart() { /*foreach (UnitDescription description in descriptions) { * MakeUnit(description); * }*/ foreach (Unit unit in troops) { unit.ColorOn(false); } armyBonus = 0; currentMorale = moraleState.neutral; }
//This is just a temprorary function until we implement the morale system public void SetMorale(moraleState newMorale) { if (currentMorale != newMorale) { if (newMorale == moraleState.high) { armyBonus += 1; } else if (newMorale == moraleState.low || currentMorale == moraleState.high) { armyBonus -= 1; //} else if (currentMorale == moraleState.high) { //take away high morale bonus } else { armyBonus += 1; } currentMorale = newMorale; } }