mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 04:38:18 +07:00
Auto build Aqueducts and Medical Labs.
This commit is contained in:

committed by
Yair Morgenstern

parent
6fb2f402f1
commit
6c3c4bf7af
@ -231,7 +231,8 @@ class ConstructionAutomation(val cityConstructions: CityConstructions){
|
||||
}
|
||||
|
||||
private fun addFoodBuildingChoice() {
|
||||
val foodBuilding = buildableNotWonders.filter { it.isStatRelated(Stat.Food) } // only stat related in unique
|
||||
val foodBuilding = buildableNotWonders.filter { it.isStatRelated(Stat.Food)
|
||||
|| it.getBaseBuilding().name == "Aqueduct" || it.getBaseBuilding().name == "Medical Lab"} // only stat related in unique
|
||||
.minBy { it.cost }
|
||||
if (foodBuilding != null) {
|
||||
var modifier = 1f
|
||||
|
Reference in New Issue
Block a user