Detect invalid boolean values for "heals" terrain attribute.

This commit is contained in:
Eric S. Raymond 2008-12-18 12:08:08 +00:00
parent 3c84d49fad
commit ebf04baced

View file

@ -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?"