Added "unowned" tileFilter for #13554

This commit is contained in:
yairm210 2025-07-01 16:46:44 +03:00
parent 10a4be2214
commit 7f29dab09f
2 changed files with 2 additions and 1 deletions

View File

@ -512,6 +512,7 @@ class Tile : IsPartOfGameInfoSerialization, Json.Serializable {
"Land" -> return isLand
Constants.coastal -> return isCoastalTile()
Constants.river -> return isAdjacentToRiver()
"unowned" -> return getOwner() == null
"your" -> return observingCiv != null && getOwner() == observingCiv
"Foreign Land", "Foreign" -> return observingCiv != null && !isFriendlyTerritory(observingCiv)
"Friendly Land", "Friendly" -> return observingCiv != null && isFriendlyTerritory(observingCiv)

View File

@ -315,7 +315,7 @@ enum class UniqueParameterType(
override val staticKnownValues = setOf(
"Terrain",
Constants.coastal, Constants.river, "Open terrain", "Rough terrain", "Water resource",
"resource", "Foreign Land", "Foreign", "Friendly Land", "Friendly", "Enemy Land", "Enemy", "your",
"resource", "Foreign Land", "Foreign", "Friendly Land", "Friendly", "Enemy Land", "Enemy", "your", "unowned",
"Featureless", Constants.freshWaterFilter, "non-fresh water", "Natural Wonder",
"Impassable", "Land", "Water"
) + ResourceType.entries.map { it.name + " resource" } + Constants.all