mirror of
https://github.com/yairm210/Unciv.git
synced 2025-03-11 18:39:43 +07:00
Added modder warning for deprecated fields
This commit is contained in:
parent
c05bf0a2a6
commit
ed47f16c6e
@ -392,6 +392,16 @@ class Ruleset {
|
||||
checkUniques(nation, lines, UniqueType.UniqueComplianceErrorSeverity.RulesetInvariant)
|
||||
}
|
||||
|
||||
for (promotion in unitPromotions.values)
|
||||
if (promotion.effect != "")
|
||||
lines.add("`Promotion.effect` used in ${promotion.name} is deprecated, please use `uniques` instead",
|
||||
RulesetErrorSeverity.WarningOptionsOnly)
|
||||
|
||||
for (resource in tileResources.values)
|
||||
if (resource.unique != null)
|
||||
lines.add("`Resource.unique` used in ${resource.name} is deprecated, please use `uniques` instead",
|
||||
RulesetErrorSeverity.WarningOptionsOnly)
|
||||
|
||||
// Quit here when no base ruleset is loaded - references cannot be checked
|
||||
if (!modOptions.isBaseRuleset) return lines
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user