mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 23:10:39 -04:00
Fishing boats can no longer create oil wells in cities with oil
This commit is contained in:
parent
ab7ce12a87
commit
3ff78ef6b3
@ -174,6 +174,7 @@ class UnitActions {
|
|||||||
|
|
||||||
for(improvement in listOf("Fishing Boats","Oil well")) {
|
for(improvement in listOf("Fishing Boats","Oil well")) {
|
||||||
if (unit.hasUnique("May create improvements on water resources") && tile.resource != null
|
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.improvement==null
|
||||||
&& tile.getTileResource().improvement == improvement
|
&& tile.getTileResource().improvement == improvement
|
||||||
&& unit.civInfo.tech.isResearched(GameBasics.TileImprovements[improvement]!!.techRequired!!)
|
&& unit.civInfo.tech.isResearched(GameBasics.TileImprovements[improvement]!!.techRequired!!)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user