Detect campaigns without IDs.
This commit is contained in:
parent
4e7e09a5ca
commit
504e37dc04
1 changed files with 3 additions and 0 deletions
|
@ -548,6 +548,9 @@ def validate_on_pop(tagstack, closer, filename, lineno):
|
|||
if "units" not in filename and closer == "unit" and "race" in attributes:
|
||||
print '"%s", line %d: [unit] needs hand fixup to [unit_type]' % \
|
||||
(filename, lineno)
|
||||
if closer == "campaign" and "id" not in attributes:
|
||||
print '"%s", line %d: campaign has no ID' % \
|
||||
(filename, lineno)
|
||||
|
||||
def within(tag):
|
||||
"Did the specified tag lead one of our enclosing contexts?"
|
||||
|
|
Loading…
Add table
Reference in a new issue