mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 02:09:21 +07:00
Work boats can now construct Oil Wells in coastal tiles
This commit is contained in:
@ -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")
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user