mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-27 16:10:55 +07:00
More city filters (#11253)
This commit is contained in:
parent
60d93e5ff9
commit
06a675c44f
@ -432,6 +432,8 @@ class City : IsPartOfGameInfoSerialization {
|
|||||||
"in foreign cities", "Foreign" -> viewingCiv != null && viewingCiv != civ
|
"in foreign cities", "Foreign" -> viewingCiv != null && viewingCiv != civ
|
||||||
"in annexed cities", "Annexed" -> foundingCiv != civ.civName && !isPuppet
|
"in annexed cities", "Annexed" -> foundingCiv != civ.civName && !isPuppet
|
||||||
"in puppeted cities", "Puppeted" -> isPuppet
|
"in puppeted cities", "Puppeted" -> isPuppet
|
||||||
|
"in resisting cities", "Resisting" -> isInResistance()
|
||||||
|
"in cities being razed", "Razing" -> isBeingRazed
|
||||||
"in holy cities", "Holy" -> isHolyCity()
|
"in holy cities", "Holy" -> isHolyCity()
|
||||||
"in City-State cities" -> civ.isCityState()
|
"in City-State cities" -> civ.isCityState()
|
||||||
// This is only used in communication to the user indicating that only in cities with this
|
// This is only used in communication to the user indicating that only in cities with this
|
||||||
|
@ -255,6 +255,8 @@ enum class UniqueParameterType(
|
|||||||
"in foreign cities", "Foreign",
|
"in foreign cities", "Foreign",
|
||||||
"in annexed cities", "Annexed",
|
"in annexed cities", "Annexed",
|
||||||
"in puppeted cities", "Puppeted",
|
"in puppeted cities", "Puppeted",
|
||||||
|
"in resisting cities", "Resisting",
|
||||||
|
"in cities being razed", "Razing",
|
||||||
"in holy cities", "Holy",
|
"in holy cities", "Holy",
|
||||||
"in City-State cities",
|
"in City-State cities",
|
||||||
"in cities following this religion",
|
"in cities following this religion",
|
||||||
@ -394,7 +396,7 @@ enum class UniqueParameterType(
|
|||||||
|
|
||||||
/** Used for region definitions, can be a terrain type with region unique, or "Hybrid"
|
/** Used for region definitions, can be a terrain type with region unique, or "Hybrid"
|
||||||
*
|
*
|
||||||
* See also: [UniqueType.ConditionalInRegionOfType], [UniqueType.ConditionalInRegionExceptOfType], [MapRegions][com.unciv.logic.map.mapgenerator.MapRegions] */
|
* See also: [UniqueType.ConditionalInRegionOfType], [UniqueType.ConditionalInRegionExceptOfType], [MapRegions][com.unciv.logic.map.mapgenerator.mapregions.MapRegions] */
|
||||||
RegionType("regionType", "Hybrid", null, "Region Types") {
|
RegionType("regionType", "Hybrid", null, "Region Types") {
|
||||||
private val knownValues = setOf("Hybrid")
|
private val knownValues = setOf("Hybrid")
|
||||||
override fun getErrorSeverity(parameterText: String, ruleset: Ruleset):
|
override fun getErrorSeverity(parameterText: String, ruleset: Ruleset):
|
||||||
|
Loading…
Reference in New Issue
Block a user