mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-05 21:11:35 +07:00
New tileFilter parameter, for tiles belonging directly to you
This commit is contained in:
parent
9d670c8671
commit
67329cdabd
@ -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)
|
||||
|
@ -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"
|
||||
) +
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user