Work boats can now construct Oil Wells in coastal tiles
This commit is contained in:
parent
a7694867d0
commit
d2d07f49a7
2 changed files with 11 additions and 6 deletions
|
@ -130,12 +130,16 @@ class UnitActions {
|
|||
}
|
||||
}
|
||||
|
||||
if(unit.name == "Work Boats" && tile.improvement==null && tile.resource!=null
|
||||
&& tile.isWater())
|
||||
actionList += UnitAction("Create Fishing Boats",{
|
||||
tile.improvement = "Fishing Boats"
|
||||
unit.destroy()
|
||||
}, unit.currentMovement != 0f)
|
||||
for(improvement in listOf("Fishing Boats","Oil well")) {
|
||||
if (unit.name == "Work Boats" && tile.resource != null
|
||||
&& tile.getTileResource().improvement == improvement
|
||||
&& unit.civInfo.tech.isResearched(GameBasics.TileImprovements[improvement]!!.techRequired!!)
|
||||
)
|
||||
actionList += UnitAction("Create $improvement", {
|
||||
tile.improvement = improvement
|
||||
unit.destroy()
|
||||
}, unit.currentMovement != 0f)
|
||||
}
|
||||
|
||||
if (unit.name == "Great Scientist" && !unit.isEmbarked()) {
|
||||
actionList += UnitAction( "Discover Technology",
|
||||
|
|
|
@ -40,6 +40,7 @@ class UnitActionsTable(val worldScreen: WorldScreen) : Table(){
|
|||
"Explore" -> return ImageGetter.getUnitIcon("Scout")
|
||||
"Stop exploration" -> return ImageGetter.getImage("OtherIcons/Stop.png")
|
||||
"Create Fishing Boats" -> return ImageGetter.getImprovementIcon("Fishing Boats")
|
||||
"Create Oil well" -> return ImageGetter.getImprovementIcon("Oil well")
|
||||
else -> return ImageGetter.getImage("OtherIcons/Star.png")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue