Teach wmllint to fix deprecated implicit side=1 in [store_gold] actions
This uses esr's rule from 2011-07-03T10:55:21Z!esr@thyrsus.com rather than patch #2666's.
This commit is contained in:
parent
53e260ca6b
commit
97da3fcaa3
2 changed files with 3 additions and 1 deletions
|
@ -63,6 +63,8 @@ Version 1.9.8+svn:
|
|||
* the Falcon line (Falcon, Elder Falcon) now get 2 traits, one normal trait and the feral trait
|
||||
* decreased the impact resist of the Falcon line from 0% to -10%
|
||||
* The Naffat line (Naffat, Qatif-al-nar, Tineen) is no longer able to get the strong trait
|
||||
* Miscellaneous and bug fixes:
|
||||
* Teach wmllint to fix deprecated implicit side=1 in [store_gold] actions
|
||||
|
||||
Version 1.9.8:
|
||||
* Campaigns:
|
||||
|
|
|
@ -547,7 +547,7 @@ def validate_on_pop(tagstack, closer, filename, lineno):
|
|||
if closer == "unit" and attributes.get("id") is not None and attributes.get("type") is not None and attributes.get("side") is None and not "side" in ancestors:
|
||||
print '"%s", line %d: unit declaration without side attribute' % \
|
||||
(filename, lineno)
|
||||
if closer in ["set_recruit", "allow_recruit", "disallow_recruit"] and "side" not in attributes:
|
||||
if closer in ["set_recruit", "allow_recruit", "disallow_recruit", "store_gold"] and "side" not in attributes:
|
||||
print '"%s", line %d: %s requires "side" attribute but has none' % \
|
||||
(filename, lineno, closer)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue