mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-14 01:39:40 +07:00
Added modder warning for deprecated fields
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user