From bd41630f8492003f55d01ff2d667141a71696a07 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Wed, 20 Apr 2022 09:31:26 +0300 Subject: [PATCH] terrainFilter accepts tile resource uniques --- core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt b/core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt index edafd84a7f..5506cee61a 100644 --- a/core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt +++ b/core/src/com/unciv/models/ruleset/unique/UniqueParameterType.kt @@ -239,6 +239,7 @@ enum class UniqueParameterType( in ruleset.terrains -> null in ruleset.tileResources -> null in ruleset.terrains.values.asSequence().flatMap { it.uniques } -> null + in ruleset.tileResources.values.asSequence().flatMap { it.uniques } -> null else -> UniqueType.UniqueComplianceErrorSeverity.RulesetSpecific } override fun isTranslationWriterGuess(parameterText: String, ruleset: Ruleset) =