update
This commit is contained in:
parent
8602087edc
commit
f5dd24bf35
1 changed files with 1 additions and 3 deletions
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue