mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-29 06:51:30 -04:00
Modded water units with worker unique can no longer build roads in water
This commit is contained in:
parent
099ee879cc
commit
b77fa8d67d
@ -319,8 +319,8 @@ open class TileInfo {
|
|||||||
if (filter == "River") return@any !isAdjacentToRiver()
|
if (filter == "River") return@any !isAdjacentToRiver()
|
||||||
else return@any !neighbors.any { it.matchesUniqueFilter(filter) }
|
else return@any !neighbors.any { it.matchesUniqueFilter(filter) }
|
||||||
} -> false
|
} -> false
|
||||||
improvement.name == "Road" && roadStatus == RoadStatus.None -> true
|
improvement.name == "Road" && roadStatus == RoadStatus.None && !isWater -> true
|
||||||
improvement.name == "Railroad" && this.roadStatus != RoadStatus.Railroad -> true
|
improvement.name == "Railroad" && this.roadStatus != RoadStatus.Railroad && !isWater -> true
|
||||||
improvement.name == "Remove Road" && this.roadStatus == RoadStatus.Road -> true
|
improvement.name == "Remove Road" && this.roadStatus == RoadStatus.Road -> true
|
||||||
improvement.name == "Remove Railroad" && this.roadStatus == RoadStatus.Railroad -> true
|
improvement.name == "Remove Railroad" && this.roadStatus == RoadStatus.Railroad -> true
|
||||||
improvement.name == Constants.cancelImprovementOrder && this.improvementInProgress != null -> true
|
improvement.name == Constants.cancelImprovementOrder && this.improvementInProgress != null -> true
|
||||||
|
@ -188,7 +188,7 @@ class Building : NamedStats(), IConstruction {
|
|||||||
}
|
}
|
||||||
|
|
||||||
override fun canBePurchased(): Boolean {
|
override fun canBePurchased(): Boolean {
|
||||||
return !isWonder && !isNationalWonder && ("Cannot be purchased" !in uniques)
|
return !isWonder && !isNationalWonder && "Cannot be purchased" !in uniques
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user