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