From 15759b143f637b5d38b078b0aca8556236f595e5 Mon Sep 17 00:00:00 2001 From: yairm210 Date: Mon, 8 Jul 2024 13:45:06 +0300 Subject: [PATCH] Resolve detekt error --- core/src/com/unciv/logic/city/City.kt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/core/src/com/unciv/logic/city/City.kt b/core/src/com/unciv/logic/city/City.kt index 657d016f31..10ff035423 100644 --- a/core/src/com/unciv/logic/city/City.kt +++ b/core/src/com/unciv/logic/city/City.kt @@ -237,8 +237,11 @@ class City : IsPartOfGameInfoSerialization, INamed { 200 + cityConstructions.getBuiltBuildings().sumOf { it.cityHealth } 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 */ - fun getMaxAirUnits() = 6 + fun getMaxAirUnits() = MAX_AIR_UNITS override fun toString() = name // for debug