This commit is contained in:
YueR 2019-09-29 03:15:46 +08:00
parent 8602087edc
commit f5dd24bf35

View file

@ -197,9 +197,7 @@ class BattleDamage{
private fun getHealthDependantDamageRatio(combatant: ICombatant): Float { private fun getHealthDependantDamageRatio(combatant: ICombatant): Float {
return if (combatant.getUnitType() == UnitType.City) 0.75f return if (combatant.getUnitType() == UnitType.City) 0.75f
else if(combatant.getCivInfo().nation.unique == "Units fight as though they were at full strength even when damaged" else if(combatant.getCivInfo().nation.unique == "Units fight as though they were at full strength even when damaged" && !combatant.getUnitType().isAirUnit())
&& combatant.getUnitType()!=UnitType.Fighter
&& combatant.getUnitType()!=UnitType.Bomber)
1f 1f
else 1 - (100 - combatant.getHealth()) / 300f// Each 3 points of health reduces damage dealt by 1% like original game else 1 - (100 - combatant.getHealth()) / 300f// Each 3 points of health reduces damage dealt by 1% like original game
} }