With these changes (including a slightly smarter wmllint)
Legend of Wesmere wmllints clean.
This commit is contained in:
parent
5a3fe76339
commit
78328561f2
19 changed files with 40 additions and 4 deletions
|
@ -47,6 +47,7 @@ This is the story of Kalenz, and of the Elves in the days of the humans in Wesno
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
|
@ -75,6 +76,7 @@ This is the story of Kalenz, and of the Elves in the days of the humans in Wesno
|
|||
[/modifications]
|
||||
[/unit]
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
side=2
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
|
@ -61,6 +62,7 @@
|
|||
[/avoid]
|
||||
[/ai]
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
type=Troll Warrior
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
|
@ -57,6 +58,7 @@
|
|||
aggression=0.0
|
||||
[/ai]
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
# dummy side because we don't have a second ally like in elves last stand
|
||||
[side]
|
||||
|
|
|
@ -33,11 +33,13 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES}
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
[side]
|
||||
type=Saurian Ambusher
|
||||
id=Shurm
|
||||
|
|
|
@ -34,11 +34,13 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES}
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
[side]
|
||||
type=Saurian Ambusher
|
||||
id=Hraurg
|
||||
|
|
|
@ -34,11 +34,13 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES}
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
[side]
|
||||
side=2
|
||||
canrecruit=yes
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
[/part]
|
||||
[/story]
|
||||
#friends
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
# wmllint: recognize Kalenz
|
||||
{KALENZ}
|
||||
|
@ -53,6 +54,7 @@
|
|||
grouping=defensive
|
||||
[/ai]
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
[side]
|
||||
type=Elvish Marshal
|
||||
id="El'Isomithir"
|
||||
|
|
|
@ -37,11 +37,13 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES},{DWARVES}
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
type=Saurian Flanker
|
||||
|
|
|
@ -30,13 +30,14 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES},{DWARVES}
|
||||
fog=yes
|
||||
[/side]
|
||||
|
||||
#wmllint: validate-on
|
||||
[side]
|
||||
type=Troll Warrior
|
||||
id=Tafrul
|
||||
|
|
|
@ -27,12 +27,14 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES},{DWARVES}
|
||||
fog=yes
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
type=Drake Mage
|
||||
|
|
|
@ -30,12 +30,14 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
# why fog?
|
||||
fog=yes
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[event]
|
||||
name=prestart
|
||||
|
|
|
@ -44,12 +44,14 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES},{DWARVES}
|
||||
#TODO no minimum gold?
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
[side]
|
||||
type=General
|
||||
id=Aldar
|
||||
|
|
|
@ -48,11 +48,13 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
#TODO disallow recruit
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
type=Orcish Sovereign
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
|
@ -42,6 +43,7 @@
|
|||
[side]
|
||||
{URADREDIA}
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
type=Orcish Warlord
|
||||
|
@ -200,7 +202,7 @@
|
|||
{WINTER_MASK 17_Breaking_the_siege.mask}
|
||||
[/event]
|
||||
|
||||
#wmllint: recognize Uraderia
|
||||
#wmllint: recognize Uradredia
|
||||
[event]
|
||||
name=start
|
||||
[message]
|
||||
|
|
|
@ -36,12 +36,14 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES}
|
||||
# TODO no minimum gold here?
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
type=Saurian Flanker
|
||||
|
|
|
@ -47,12 +47,14 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES}
|
||||
{GOLD 100 100 100}
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
type=Elvish Ranger
|
||||
|
|
|
@ -33,16 +33,17 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES}
|
||||
{GOLD 100 100 100}
|
||||
[/side]
|
||||
|
||||
[side]
|
||||
{URADREDIA}
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
|
||||
[side]
|
||||
# Landar gets unstored here
|
||||
|
|
|
@ -25,12 +25,14 @@
|
|||
[/part]
|
||||
[/story]
|
||||
|
||||
#wmllint: validate-off
|
||||
[side]
|
||||
{KALENZ}
|
||||
# wmllint: recognize Kalenz
|
||||
recruit={ELVES}
|
||||
{GOLD 200 160 160}
|
||||
[/side]
|
||||
#wmllint: validate-on
|
||||
[side]
|
||||
side=2
|
||||
no_leader=yes
|
||||
|
|
|
@ -598,7 +598,9 @@ def consistency_check():
|
|||
(rl, recruit) = recruitlist
|
||||
for rtype in recruit:
|
||||
if rtype not in unit_types:
|
||||
print '"%s", line %d: %s is not a known unit type' % (filename, rl, rtype)
|
||||
# Assume WML coder knew what he was doing if macro reference
|
||||
if not rtype.startswith("{"):
|
||||
print '"%s", line %d: %s is not a known unit type' % (filename, rl, rtype)
|
||||
continue
|
||||
elif rtype not in usage:
|
||||
if not rtype in derivedlist:
|
||||
|
|
Loading…
Add table
Reference in a new issue