mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-22 13:49:54 +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() {
|
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 }
|
.minBy { it.cost }
|
||||||
if (foodBuilding != null) {
|
if (foodBuilding != null) {
|
||||||
var modifier = 1f
|
var modifier = 1f
|
||||||
|
Reference in New Issue
Block a user