mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-28 22:37:02 -04:00
update
This commit is contained in:
parent
8602087edc
commit
f5dd24bf35
@ -197,9 +197,7 @@ class BattleDamage{
|
||||
|
||||
private fun getHealthDependantDamageRatio(combatant: ICombatant): Float {
|
||||
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"
|
||||
&& combatant.getUnitType()!=UnitType.Fighter
|
||||
&& combatant.getUnitType()!=UnitType.Bomber)
|
||||
else if(combatant.getCivInfo().nation.unique == "Units fight as though they were at full strength even when damaged" && !combatant.getUnitType().isAirUnit())
|
||||
1f
|
||||
else 1 - (100 - combatant.getHealth()) / 300f// Each 3 points of health reduces damage dealt by 1% like original game
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user