From aba91c916781dc552d6ea30cfef395f2b9ca0bd5 Mon Sep 17 00:00:00 2001 From: Oskar Niesen Date: Fri, 19 Jan 2024 04:26:52 -0600 Subject: [PATCH] AI worker amount increase (#10945) * Increased the amount of workers the AI builds * Changed the number of workers a little --- .../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 f2b602aff4..6732c3d91f 100644 --- a/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt +++ b/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt @@ -193,8 +193,8 @@ class ConstructionAutomation(val cityConstructions: CityConstructions) { }.filterBuildable() if (workerEquivalents.none()) return // for mods with no worker units - // For the first 3 cities, dedicate a worker, from then on only build another worker if you have 12 cities. - val numberOfWorkersWeWant = if (cities < 4) cities else max(3, cities/3) + // Dedicate a worker for the first 5 cities, from then on only build another worker for every 2 cities. + val numberOfWorkersWeWant = if (cities <= 5) cities else 5 + (cities - 5 / 2) if (workers < numberOfWorkersWeWant) { var modifier = numberOfWorkersWeWant / (workers + 0.1f) // The worse our worker to city ratio is, the more desperate we are