mirror of
https://github.com/yairm210/Unciv.git
synced 2025-08-03 12:37:42 -04:00
Added "unowned" tileFilter for #13554
This commit is contained in:
parent
10a4be2214
commit
7f29dab09f
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user