mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-10 19:09:06 +07:00
Defeated cities don't really hit back
This commit is contained in:
parent
21bb743caf
commit
2bcd4a86e7
@ -20,7 +20,10 @@ class CityCombatant(val city: CityInfo) : ICombatant {
|
||||
|
||||
override fun getUnitType():UnitType=UnitType.City
|
||||
override fun getAttackingStrength(defender: ICombatant): Int = getCityStrength()
|
||||
override fun getDefendingStrength(attacker: ICombatant): Int = getCityStrength()
|
||||
override fun getDefendingStrength(attacker: ICombatant): Int{
|
||||
if(isDefeated()) return 1
|
||||
return getCityStrength()
|
||||
}
|
||||
|
||||
private fun
|
||||
getCityStrength(): Int {
|
||||
|
Loading…
Reference in New Issue
Block a user