mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-15 10:18:26 +07:00
Bring Legion Unit closer to wiki? (#2439)
This commit is contained in:
@ -324,7 +324,6 @@
|
|||||||
"cost": 75,
|
"cost": 75,
|
||||||
"requiredTech": "Iron Working",
|
"requiredTech": "Iron Working",
|
||||||
"upgradesTo": "Longswordsman",
|
"upgradesTo": "Longswordsman",
|
||||||
"obsoleteTech": "Steel",
|
|
||||||
"requiredResource": "Iron",
|
"requiredResource": "Iron",
|
||||||
"uniques": ["Can construct roads"],
|
"uniques": ["Can construct roads"],
|
||||||
"hurryCostModifier": 20,
|
"hurryCostModifier": 20,
|
||||||
|
@ -110,16 +110,17 @@ object UnitActions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun addConstructRoadsAction(unit: MapUnit, tile: TileInfo, actionList: ArrayList<UnitAction>) {
|
private fun addConstructRoadsAction(unit: MapUnit, tile: TileInfo, actionList: ArrayList<UnitAction>) {
|
||||||
|
val improvement = RoadStatus.Road.improvement(unit.civInfo.gameInfo.ruleSet) ?: return
|
||||||
if (unit.hasUnique("Can construct roads")
|
if (unit.hasUnique("Can construct roads")
|
||||||
&& tile.roadStatus == RoadStatus.None
|
&& tile.roadStatus == RoadStatus.None
|
||||||
&& tile.improvementInProgress != "Road"
|
&& tile.improvementInProgress != "Road"
|
||||||
&& tile.isLand
|
&& tile.isLand
|
||||||
&& unit.civInfo.tech.isResearched(RoadStatus.Road.improvement(unit.civInfo.gameInfo.ruleSet)!!.techRequired!!))
|
&& (improvement.techRequired==null || unit.civInfo.tech.isResearched(improvement.techRequired!!)))
|
||||||
actionList += UnitAction(
|
actionList += UnitAction(
|
||||||
type = UnitActionType.ConstructRoad,
|
type = UnitActionType.ConstructRoad,
|
||||||
action = {
|
action = {
|
||||||
tile.improvementInProgress = "Road"
|
tile.improvementInProgress = "Road"
|
||||||
tile.turnsToImprovement = 4
|
tile.turnsToImprovement = improvement.getTurnsToBuild(unit.civInfo)
|
||||||
}.takeIf { unit.currentMovement > 0 })
|
}.takeIf { unit.currentMovement > 0 })
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user