Resolved #1902 - buildings requiring worked resources can be built in cities that are built on that resource

This commit is contained in:
Yair Morgenstern 2020-02-10 20:35:14 +02:00
parent a514e462cc
commit 942092e33e

View file

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