wmllint: extend scenario check to include first scenario

Some newbie authors run into trouble at this point!
This commit is contained in:
Groggy Dice 2013-08-17 15:28:39 -04:00
parent 93af90d2db
commit 8b3aba7ccb

View file

@ -931,6 +931,9 @@ def local_sanity_check(filename, nav, key, prefix, value, comment):
if parent in ("[allow_recruit]", "[disallow_recruit]") and key == "recruit":
print errlead + "recruit= should be type="
# Accumulate data to check for missing next scenarios
if parent == '[campaign]':
if key == "first_scenario" and value != "null":
nextrefs.append((filename, nav.lineno, value))
if parent == '[scenario]' or parent == None:
if key == "next_scenario" and value != "null":
nextrefs.append((filename, nav.lineno, value))