From e7b73c05cd5960f9f8e3292d6d3225345524c983 Mon Sep 17 00:00:00 2001 From: EmperorPinguin <99119424+EmperorPinguin@users.noreply.github.com> Date: Mon, 16 Dec 2024 09:53:18 +0100 Subject: [PATCH] Update ConstructionAutomation.kt (#12659) * Update ConstructionAutomation.kt * Update ConstructionAutomation.kt --- .../com/unciv/logic/automation/city/ConstructionAutomation.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt b/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt index dfafe82b4f..a1425b548d 100644 --- a/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt +++ b/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt @@ -247,8 +247,8 @@ class ConstructionAutomation(val cityConstructions: CityConstructions) { }.filterBuildable() if (workerEquivalents.none()) return // for mods with no worker units - // Dedicate 1.5 workers for the first 5 cities, from then on only build one worker for every city. - val numberOfWorkersWeWant = if (cities <= 5) (cities * 1.5f) else 7.5f + ((cities - 5)) + // Dedicate 1 worker for the first city (CS), then 1.5 workers for the first 5 cities, from then on build one more worker for every city. + val numberOfWorkersWeWant = if (cities <= 1) 1f else if (cities <= 5) (cities * 1.5f) else 7.5f + ((cities - 5)) if (workers < numberOfWorkersWeWant) { val modifier = numberOfWorkersWeWant / (workers + 0.17f) // The worse our worker to city ratio is, the more desperate we are