Resolved #1852 - buildings requiring an improved resource now accept resources with great improvements

This commit is contained in:
Yair Morgenstern 2020-02-05 22:21:57 +02:00
parent cb6ca058f3
commit 193ebe0ccd

View file

@ -311,7 +311,7 @@ class Building : NamedStats(), IConstruction{
.any { .any {
it.resource != null it.resource != null
&& requiredNearbyImprovedResources!!.contains(it.resource!!) && requiredNearbyImprovedResources!!.contains(it.resource!!)
&& it.getTileResource().improvement == it.improvement && (it.getTileResource().improvement == it.improvement || it.improvement in Constants.greatImprovements)
&& it.getOwner() == civInfo && it.getOwner() == civInfo
} }
if (!containsResourceWithImprovement) return "Nearby $requiredNearbyImprovedResources required" if (!containsResourceWithImprovement) return "Nearby $requiredNearbyImprovedResources required"