Update ConstructionAutomation.kt (#13756)

This commit is contained in:
EmperorPinguin 2025-08-06 21:25:17 +02:00 committed by GitHub
parent e8b72da3fd
commit 3b483e0d14
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -288,8 +288,10 @@ class ConstructionAutomation(val cityConstructions: CityConstructions) {
building.hasUnique(UniqueType.StatPercentBonusCities) -> civInfo.getPersonality().culture // Sistine Chapel in base game, but players seem to "expect" culture civs to build more wonders in general
else -> 0f
}
} else {
value += if (building.hasUnique(UniqueType.CreatesOneImprovement)) 5f else 0f //District-type buildings, should be weighed by the stats (incl. adjacencies) of the improvement
} else value += when {
building.hasUnique(UniqueType.CreatesOneImprovement) -> 5f // District-type buildings, should be weighed by the stats (incl. adjacencies) of the improvement
building.hasUnique(UniqueType.ProvidesResources) -> 2f // Should be weighed by how much we need the resources
else -> 0f
}
return value
}