mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-11 11:28:03 +07:00
Apparently the code already existed, the problem was that the uniquetype wasn't marked as such
This commit is contained in:
parent
2e9bc1604f
commit
b1df775217
@ -486,10 +486,6 @@ open class TileInfo {
|
||||
improvement.getMatchingUniques(UniqueType.CannotBuildOnTile).any {
|
||||
unique -> matchesTerrainFilter(unique.params[0])
|
||||
} -> false
|
||||
improvement.getMatchingUniques(UniqueType.MustBeNextTo).any { unique ->
|
||||
neighbors.none { it.matchesFilter(unique.params[0]) }
|
||||
} -> false
|
||||
|
||||
// Road improvements can change on tiles with irremovable improvements - nothing else can, though.
|
||||
RoadStatus.values().none { it.name == improvement.name || it.removeAction == improvement.name }
|
||||
&& getTileImprovement().let { it != null && it.hasUnique("Irremovable") } -> false
|
||||
|
Loading…
Reference in New Issue
Block a user