New tileFilter parameter, for tiles belonging directly to you

This commit is contained in:
Yair Morgenstern 2024-01-25 23:53:47 +02:00
parent 9d670c8671
commit 67329cdabd
3 changed files with 3 additions and 1 deletions

View File

@ -505,6 +505,7 @@ open class Tile : IsPartOfGameInfoSerialization {
"Open terrain" -> !isRoughTerrain()
"Rough terrain" -> isRoughTerrain()
"your" -> observingCiv != null && getOwner() == observingCiv
"Foreign Land", "Foreign" -> observingCiv != null && !isFriendlyTerritory(observingCiv)
"Friendly Land", "Friendly" -> observingCiv != null && isFriendlyTerritory(observingCiv)
"Enemy Land", "Enemy" -> observingCiv != null && isEnemyTerritory(observingCiv)

View File

@ -313,7 +313,7 @@ enum class UniqueParameterType(
private val knownValues = setOf(
"All", "Terrain",
Constants.coastal, Constants.river, "Open terrain", "Rough terrain", "Water resource",
"resource", "Foreign Land", "Foreign", "Friendly Land", "Friendly", "Enemy Land", "Enemy",
"resource", "Foreign Land", "Foreign", "Friendly Land", "Friendly", "Enemy Land", "Enemy", "your",
"Featureless", Constants.freshWaterFilter, "non-fresh water", "Natural Wonder",
"Impassable", "Land", "Water"
) +

View File

@ -217,6 +217,7 @@ This indicates the terrain on a single tile. The following values are allowed:
- `Friendly Land` - land belonging to you, or other civs with open borders to you
- `Foreign Land` - any land that isn't friendly land
- `Enemy land` - any land belonging to a civ you are at war with
- `your` - land belonging to you
- `Water resource`, `Strategic resource`, `Luxury resource`, `Bonus resource`, `resource`
- `Natural Wonder` (as opposed to above which means testing for a specific Natural Wonder by name, this tests for any of them)