mirror of
https://github.com/yairm210/Unciv.git
synced 2025-01-10 15:27:27 +07:00
Resolved #10621 - Ruleset validation for negative-weight ruin rewards
This commit is contained in:
parent
5b29a0234b
commit
dfd8d5cbc9
@ -178,6 +178,7 @@ class RulesetValidator(val ruleset: Ruleset) {
|
||||
tryFixUnknownUniques: Boolean
|
||||
) {
|
||||
for (reward in ruleset.ruinRewards.values) {
|
||||
if (reward.weight < 0) lines += "${reward.name} has a negative weight, which is not allowed!"
|
||||
for (difficulty in reward.excludedDifficulties)
|
||||
if (!ruleset.difficulties.containsKey(difficulty))
|
||||
lines += "${reward.name} references difficulty ${difficulty}, which does not exist!"
|
||||
|
Loading…
Reference in New Issue
Block a user