From 942092e33ec0af7ef97a4d1d8517b4fb8d76e73c Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Mon, 10 Feb 2020 20:35:14 +0200 Subject: [PATCH] Resolved #1902 - buildings requiring worked resources can be built in cities that are built on that resource --- core/src/com/unciv/models/ruleset/Building.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/com/unciv/models/ruleset/Building.kt b/core/src/com/unciv/models/ruleset/Building.kt index 5739c2125a..8ab2acf6cf 100644 --- a/core/src/com/unciv/models/ruleset/Building.kt +++ b/core/src/com/unciv/models/ruleset/Building.kt @@ -311,8 +311,8 @@ class Building : NamedStats(), IConstruction{ .any { it.resource != null && requiredNearbyImprovedResources!!.contains(it.resource!!) - && (it.getTileResource().improvement == it.improvement || it.improvement in Constants.greatImprovements) && it.getOwner() == civInfo + && (it.getTileResource().improvement == it.improvement || it.improvement in Constants.greatImprovements || it.isCityCenter()) } if (!containsResourceWithImprovement) return "Nearby $requiredNearbyImprovedResources required" }