Morale
Features:
Units may gain/lose Morale after a Combat Victory.
self.iMaxMorale = 15 ## Max Morale Chance = X%
self.iGoodMorale = 25 ## Good Morale Threshold: Max X% Damage
self.iGoldenAgeModifier = 150 ## Golden Age: X% Good Morale Chance
self.iMovesRegain = 1 ## Regain X Movement Point due to Good Morale
self.iBadMorale = 75 ## Bad Morale Threshold: Min X% Damage
self.iAnarchyModifier = 150 ## Anarchy: X% Bad Morale Chance
self.iBadTurns = 2 ## Immobile Turns due to Bad Morale
Winning a combat with > 75% health remaining can result in Good Morale.
This chance is then scaled to the Max Morale Chance.
After which it is enhanced by 50% during Golden Age.
Thus, a unit which wins with 90% Health, has a chance of:
(90 - 75) * 15 / 25 = 9%
While a unit which wins with 100% Health:
(100 - 75) * 15 / 25 = 15%
On the other hand, winning with < 25% health remaining can result in Bad Morale.
Good Morale gives the unit 1 additional Move Point.
Bad Morale results in 2 Immobile Turns.