diff --git a/core/src/com/unciv/logic/automation/ConstructionAutomation.kt b/core/src/com/unciv/logic/automation/ConstructionAutomation.kt index ce3b334782..842fce2edb 100644 --- a/core/src/com/unciv/logic/automation/ConstructionAutomation.kt +++ b/core/src/com/unciv/logic/automation/ConstructionAutomation.kt @@ -61,6 +61,7 @@ class ConstructionAutomation(val cityConstructions: CityConstructions){ addUnitTrainingBuildingChoice() addCultureBuildingChoice() addSpaceshipPartChoice() + addOtherBuildingChoice() if(!cityInfo.isPuppet) { addWondersChoice() @@ -152,6 +153,14 @@ class ConstructionAutomation(val cityConstructions: CityConstructions){ } } + private fun addOtherBuildingChoice() { + val otherBuilding = buildableNotWonders.minBy { it.cost } + if (otherBuilding != null) { + val modifier = 0.6f + addChoice(relativeCostEffectiveness, otherBuilding.name, modifier) + } + } + private fun addWondersChoice() { if (buildableWonders.any()) { fun getWonderPriority(wonder: Building): Float {