From 3b483e0d14eb6df9e75c6d66186ac15955229b76 Mon Sep 17 00:00:00 2001 From: EmperorPinguin <99119424+EmperorPinguin@users.noreply.github.com> Date: Wed, 6 Aug 2025 21:25:17 +0200 Subject: [PATCH] Update ConstructionAutomation.kt (#13756) --- .../unciv/logic/automation/city/ConstructionAutomation.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt b/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt index bf74c643f9..29f49ca7c7 100644 --- a/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt +++ b/core/src/com/unciv/logic/automation/city/ConstructionAutomation.kt @@ -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 }