diff --git a/core/src/com/unciv/logic/map/tile/Tile.kt b/core/src/com/unciv/logic/map/tile/Tile.kt index 40ce598965..cbc49650e6 100644 --- a/core/src/com/unciv/logic/map/tile/Tile.kt +++ b/core/src/com/unciv/logic/map/tile/Tile.kt @@ -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) diff --git a/core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt b/core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt index 02588fc827..b99e54abde 100644 --- a/core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt +++ b/core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt @@ -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" ) + diff --git a/docs/Modders/Unique-parameters.md b/docs/Modders/Unique-parameters.md index 70860cf053..d7c3ea4fb6 100644 --- a/docs/Modders/Unique-parameters.md +++ b/docs/Modders/Unique-parameters.md @@ -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)