mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-07 00:41:39 +07:00
@ -49,8 +49,9 @@ class BattleDamage{
|
|||||||
if (combatant.getCivInfo().happiness < 0)
|
if (combatant.getCivInfo().happiness < 0)
|
||||||
modifiers["Unhappiness"] = max(0.02f * combatant.getCivInfo().happiness,-0.9f) // otherwise it could exceed -100% and start healing enemy units...
|
modifiers["Unhappiness"] = max(0.02f * combatant.getCivInfo().happiness,-0.9f) // otherwise it could exceed -100% and start healing enemy units...
|
||||||
|
|
||||||
if(combatant.getCivInfo().policies.isAdopted("Populism"))
|
if(combatant.getCivInfo().policies.isAdopted("Populism") && combatant.getHealth() < 100){
|
||||||
modifiers["Populism"] = 0.25f
|
modifiers["Populism"] = 0.25f
|
||||||
|
}
|
||||||
|
|
||||||
if(combatant.getCivInfo().policies.isAdopted("Discipline") && combatant.isMelee()
|
if(combatant.getCivInfo().policies.isAdopted("Discipline") && combatant.isMelee()
|
||||||
&& combatant.getTile().neighbors.flatMap { it.getUnits() }
|
&& combatant.getTile().neighbors.flatMap { it.getUnits() }
|
||||||
|
Reference in New Issue
Block a user