mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-09 23:39:40 +07:00
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:
@ -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
|
||||
|
Reference in New Issue
Block a user