mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-20 20:59:18 +07:00
Added 'City-State' as value for nationFilter
This commit is contained in:
@ -267,8 +267,7 @@ class Nation : RulesetObject() {
|
||||
in Constants.all -> true
|
||||
name -> true
|
||||
"Major" -> isMajorCiv
|
||||
// "CityState" to be deprecated, replaced by "City-States"
|
||||
"CityState", Constants.cityStates -> isCityState
|
||||
Constants.cityStates, "City-State" -> isCityState
|
||||
else -> uniques.contains(filter)
|
||||
}
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ enum class UniqueParameterType(
|
||||
|
||||
/** Implemented by [Nation.matchesFilter][com.unciv.models.ruleset.nation.Nation.matchesFilter] */
|
||||
NationFilter("nationFilter", Constants.cityStates) {
|
||||
override val staticKnownValues = setOf(Constants.cityStates, "Major") + Constants.all
|
||||
override val staticKnownValues = setOf(Constants.cityStates, "City-State", "Major") + Constants.all
|
||||
|
||||
override fun getErrorSeverity(parameterText: String, ruleset: Ruleset) = getErrorSeverityForFilter(parameterText, ruleset)
|
||||
|
||||
|
Reference in New Issue
Block a user