Fishing boats can no longer create oil wells in cities with oil

This commit is contained in:
Yair Morgenstern 2019-07-08 18:03:45 +03:00
parent ab7ce12a87
commit 3ff78ef6b3

View File

@ -174,6 +174,7 @@ class UnitActions {
for(improvement in listOf("Fishing Boats","Oil well")) {
if (unit.hasUnique("May create improvements on water resources") && tile.resource != null
&& tile.isWater // because fishing boats can enter cities, and if there's oil in the city... ;)
&& tile.improvement==null
&& tile.getTileResource().improvement == improvement
&& unit.civInfo.tech.isResearched(GameBasics.TileImprovements[improvement]!!.techRequired!!)