mirror of
https://github.com/yairm210/Unciv.git
synced 2025-02-20 19:56:51 +01:00
can remove fallout on oases (#5640)
* can remove fallout on oases * remove matchesfilter
This commit is contained in:
parent
74d1d0451c
commit
73d9179f09
|
|
@ -472,8 +472,9 @@ open class TileInfo {
|
|||
RoadStatus.values().none { it.name == improvement.name || it.removeAction == improvement.name }
|
||||
&& getTileImprovement().let { it != null && it.hasUnique("Irremovable") } -> false
|
||||
|
||||
// Terrain blocks most improvements
|
||||
getAllTerrains().any { it.getMatchingUniques(UniqueType.RestrictedBuildableImprovements)
|
||||
// Terrain blocks BUILDING improvements - removing things (such as fallout) is fine
|
||||
!improvement.name.startsWith("Remove ") &&
|
||||
getAllTerrains().any { it.getMatchingUniques(UniqueType.RestrictedBuildableImprovements)
|
||||
.any { unique -> !improvement.matchesFilter(unique.params[0]) } } -> false
|
||||
|
||||
// Decide cancelImprovementOrder earlier, otherwise next check breaks it
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user