Detect invalid boolean values for "heals" terrain attribute.
This commit is contained in:
parent
3c84d49fad
commit
ebf04baced
1 changed files with 3 additions and 0 deletions
|
@ -171,6 +171,9 @@ def validate_on_pop(tagstack, closer, filename, lineno):
|
|||
if closer == "campaign" and "id" not in attributes:
|
||||
print '"%s", line %d: campaign has no ID' % \
|
||||
(filename, lineno)
|
||||
if closer == "terrain" and attributes.get("heals") in ("true", "false"):
|
||||
print '"%s", line %d: heals attribute no longer takes a boolean' % \
|
||||
(filename, lineno)
|
||||
|
||||
def within(tag):
|
||||
"Did the specified tag lead one of our enclosing contexts?"
|
||||
|
|
Loading…
Add table
Reference in a new issue