mirror of
https://github.com/yairm210/Unciv.git
synced 2025-09-25 21:03:15 -04:00
RulesetValidator: Raise severity for untyped uniques with parameters (#11048)
This commit is contained in:
parent
7b930f8f7d
commit
a91f45f410
@ -217,7 +217,8 @@ class UniqueValidator(val ruleset: Ruleset) {
|
|||||||
|
|
||||||
return listOf(RulesetError(
|
return listOf(RulesetError(
|
||||||
"$prefix unique \"${unique.text}\" not found in Unciv's unique types, and is not used as a filtering unique.",
|
"$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 {
|
private fun isFilteringUniqueAllowed(unique: Unique): Boolean {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user