Legion no longer construct roads on water tiles - #811

This commit is contained in:
Yair Morgenstern 2019-05-27 19:55:43 +03:00
parent c01acee372
commit 2066978ca0

View file

@ -169,8 +169,10 @@ class UnitActions {
} }
} }
if(unit.hasUnique("Can construct roads") && tile.roadStatus==RoadStatus.None if(unit.hasUnique("Can construct roads")
&& tile.roadStatus==RoadStatus.None
&& tile.improvementInProgress != "Road" && tile.improvementInProgress != "Road"
&& tile.isLand
&& unit.civInfo.tech.isResearched(GameBasics.TileImprovements["Road"]!!.techRequired!!)) && unit.civInfo.tech.isResearched(GameBasics.TileImprovements["Road"]!!.techRequired!!))
actionList+=UnitAction("Construct road", unit.currentMovement >0){ actionList+=UnitAction("Construct road", unit.currentMovement >0){
tile.improvementInProgress="Road" tile.improvementInProgress="Road"