diff --git a/core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt b/core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt index 65b2c8d502..1f4c7d2e7b 100644 --- a/core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt +++ b/core/src/com/unciv/models/ruleset/validation/RulesetValidator.kt @@ -8,6 +8,7 @@ import com.unciv.json.fromJsonFile import com.unciv.json.json import com.unciv.logic.map.tile.RoadStatus import com.unciv.models.metadata.BaseRuleset +import com.unciv.models.ruleset.BeliefType import com.unciv.models.ruleset.Building import com.unciv.models.ruleset.Ruleset import com.unciv.models.ruleset.RulesetCache @@ -230,6 +231,8 @@ class RulesetValidator(val ruleset: Ruleset) { tryFixUnknownUniques: Boolean ) { for (belief in ruleset.beliefs.values) { + if (belief.type == BeliefType.Any || belief.type == BeliefType.None) + lines += "${belief.name} type is {belief.type}, which is not allowed!" uniqueValidator.checkUniques(belief, lines, true, tryFixUnknownUniques) } }