AI worker amount increase (#10945)

* Increased the amount of workers the AI builds

* Changed the number of workers a little
This commit is contained in:
Oskar Niesen
2024-01-19 04:26:52 -06:00
committed by GitHub
parent 4e67d9535f
commit aba91c9167

View File

@ -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