From c9397572f98c0e76e0fb5b69b75834c30f8814bb Mon Sep 17 00:00:00 2001 From: YueR Date: Wed, 2 Oct 2019 23:38:00 +0800 Subject: [PATCH] update --- core/src/com/unciv/logic/battle/CityCombatant.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/battle/CityCombatant.kt b/core/src/com/unciv/logic/battle/CityCombatant.kt index 17583b81a8..14b63e5d2f 100644 --- a/core/src/com/unciv/logic/battle/CityCombatant.kt +++ b/core/src/com/unciv/logic/battle/CityCombatant.kt @@ -26,7 +26,7 @@ class CityCombatant(val city: CityInfo) : ICombatant { } override fun getUnitType(): UnitType = UnitType.City - override fun getAttackingStrength(): Int = getCityStrength() //If we don't need to multiply by a modifier number (0.75) in Damage Calculations, getCityStrength() should multiply by 1/1.54488 (about 2/3 not 2/5), i use another mathod, because in original game the city only has strength attribute (in other words, City's AttackingStrength() = getCityStrength() in original game). + override fun getAttackingStrength(): Int = getCityStrength() //If we don't need to multiply by a modifier number (0.75) in Damage Calculations, getCityStrength() should multiply by 1/1.54488 (about 2/3 not 2/5), i use another method, because in original game the city only has strength attribute (in other words, City's AttackingStrength() = getCityStrength() in original game). override fun getDefendingStrength(): Int{ if(isDefeated()) return 1 return getCityStrength()