Tweak some things soi SoF continues to pass sanity tests.
This commit is contained in:
parent
e9ddbb721e
commit
85b90320cf
2 changed files with 24 additions and 5 deletions
|
@ -795,7 +795,11 @@
|
|||
[/passage]
|
||||
[items]
|
||||
[side]
|
||||
{QUANTITY type "Troll" "Troll" "Troll Warrior"}
|
||||
#ifdef HARD
|
||||
type="Troll Warrior"
|
||||
#else
|
||||
type="Troll"
|
||||
#endif
|
||||
side=2
|
||||
canrecruit=1
|
||||
controller=ai
|
||||
|
@ -849,7 +853,11 @@
|
|||
[/passage]
|
||||
[items]
|
||||
[side]
|
||||
{QUANTITY type "Troll" "Troll" "Troll Warrior"}
|
||||
#ifdef HARD
|
||||
type="Troll Warrior"
|
||||
#else
|
||||
type="Troll"
|
||||
#endif
|
||||
side=3
|
||||
canrecruit=1
|
||||
controller=ai
|
||||
|
@ -902,7 +910,11 @@
|
|||
[/passage]
|
||||
[items]
|
||||
[side]
|
||||
{QUANTITY type "Troll" "Troll" "Troll Warrior"}
|
||||
#ifdef HARD
|
||||
type="Troll Warrior"
|
||||
#else
|
||||
type="Troll"
|
||||
#endif
|
||||
side=4
|
||||
canrecruit=1
|
||||
controller=ai
|
||||
|
|
|
@ -726,10 +726,17 @@ def sanity_check(filename, lines):
|
|||
in_side = False
|
||||
in_subtag = False
|
||||
recruit = []
|
||||
in_generator = False
|
||||
sidecount = 0
|
||||
recruitment_pattern = []
|
||||
for i in range(len(lines)):
|
||||
if "[side]" in lines[i]:
|
||||
if "[generator]" in lines[i]:
|
||||
in_generator = True
|
||||
continue
|
||||
elif "[/generator]" in lines[i]:
|
||||
in_generator = False
|
||||
continue
|
||||
elif "[side]" in lines[i]:
|
||||
in_side = True
|
||||
sidecount += 1
|
||||
continue
|
||||
|
@ -759,7 +766,7 @@ def sanity_check(filename, lines):
|
|||
% (filename, i+1, utype)
|
||||
elif key == "side":
|
||||
try:
|
||||
if sidecount != int(value):
|
||||
if not in_generator and sidecount != int(value):
|
||||
print '"%s", line %d: side number %s is out of sequence' \
|
||||
% (filename, i+1, value)
|
||||
except ValueError:
|
||||
|
|
Loading…
Add table
Reference in a new issue