RulesetValidator: Raise severity for untyped uniques with parameters (#11048)

This commit is contained in:
SomeTroglodyte 2024-01-30 18:58:26 +01:00 committed by GitHub
parent 7b930f8f7d
commit a91f45f410
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -217,7 +217,8 @@ class UniqueValidator(val ruleset: Ruleset) {
return listOf(RulesetError(
"$prefix unique \"${unique.text}\" not found in Unciv's unique types, and is not used as a filtering unique.",
RulesetErrorSeverity.OK))
if (unique.params.isEmpty()) RulesetErrorSeverity.OK else RulesetErrorSeverity.Warning
))
}
private fun isFilteringUniqueAllowed(unique: Unique): Boolean {