Auto build Aqueducts and Medical Labs.

This commit is contained in:
Duan Tao 2019-09-09 15:12:05 +08:00 committed by Yair Morgenstern
parent 6fb2f402f1
commit 6c3c4bf7af

View file

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