With these changes (including a slightly smarter wmllint)

Legend of Wesmere wmllints clean.
This commit is contained in:
Eric S. Raymond 2008-10-07 04:04:23 +00:00
parent 5a3fe76339
commit 78328561f2
19 changed files with 40 additions and 4 deletions

View file

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

View file

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

View file

@ -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]

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -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]

View file

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

View file

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

View file

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

View file

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

View file

@ -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: