mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-24 03:53:12 -04:00
Resolve detekt error
This commit is contained in:
parent
6ed43a2280
commit
15759b143f
@ -237,8 +237,11 @@ class City : IsPartOfGameInfoSerialization, INamed {
|
|||||||
200 + cityConstructions.getBuiltBuildings().sumOf { it.cityHealth }
|
200 + cityConstructions.getBuiltBuildings().sumOf { it.cityHealth }
|
||||||
|
|
||||||
fun getStrength() = cityConstructions.getBuiltBuildings().sumOf { it.cityStrength }.toFloat()
|
fun getStrength() = cityConstructions.getBuiltBuildings().sumOf { it.cityStrength }.toFloat()
|
||||||
|
|
||||||
|
// This should probably be configurable
|
||||||
|
private val MAX_AIR_UNITS = 6
|
||||||
/** Gets max air units that can remain in the city untransported */
|
/** Gets max air units that can remain in the city untransported */
|
||||||
fun getMaxAirUnits() = 6
|
fun getMaxAirUnits() = MAX_AIR_UNITS
|
||||||
|
|
||||||
override fun toString() = name // for debug
|
override fun toString() = name // for debug
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user