mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-04 15:27:50 +07:00
can remove fallout on oases (#5640)
* can remove fallout on oases * remove matchesfilter
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user