mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 22:00:24 +07:00
Decreased bombard strength as per Civ V
Don't display empty stats in city detail table
This commit is contained in:
@ -22,7 +22,7 @@ class CityCombatant(val city: CityInfo) : ICombatant {
|
||||
}
|
||||
|
||||
override fun getUnitType(): UnitType = UnitType.City
|
||||
override fun getAttackingStrength(): Int = getCityStrength()
|
||||
override fun getAttackingStrength(): Int = getCityStrength()/5 // I remember reading this but I don't recall where
|
||||
override fun getDefendingStrength(): Int{
|
||||
if(isDefeated()) return 1
|
||||
return getCityStrength()
|
||||
|
@ -103,8 +103,8 @@ class BuildingsTable(private val cityScreen: CityScreen) : Table(CameraStageBase
|
||||
if(stat.value.isNotEmpty()){
|
||||
expander.innerTable.add(Label("Total".tr(),skin))
|
||||
expander.innerTable.add(Label(DecimalFormat("0.#").format(stat.value.values.sum()),skin))
|
||||
add(expander).row()
|
||||
}
|
||||
add(expander).row()
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user