Use generator macros for loyal units.

This commit is contained in:
Eric S. Raymond 2009-12-15 18:25:28 +00:00
parent f88a4be057
commit c06fa3e162
2 changed files with 19 additions and 114 deletions

View file

@ -127,110 +127,23 @@
[/unit]
#the armed villagers, beware them
[unit]
name= _ "Alwyn"
type=Spearman
side=1
x=30
y=22
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[unit]
name= _ "Brent"
type=Spearman
side=1
x=30
y=21
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[unit]
name= _ "Cadell"
type=Spearman
side=1
x=31
y=22
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[unit]
name= _ "Dannen"
type=Bowman
side=1
x=32
y=19
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[unit]
name= _ "Efran"
type=Bowman
side=1
x=33
y=19
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[unit]
name= _ "Fargus"
type=Footpad
side=1
x=32
y=18
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
#define SOUTHWEST
[+unit]
facing=sw
[/unit]
#enddef
{NAMED_LOYAL_UNIT 1 Spearman 30 22 Alwn (_ "Alwyn")} {SOUTHWEST}
{NAMED_LOYAL_UNIT 1 Spearman 30 21 Brent (_ "Brent")} {SOUTHWEST}
{NAMED_LOYAL_UNIT 1 Spearman 31 22 Cadell (_ "Cadell")} {SOUTHWEST}
{NAMED_LOYAL_UNIT 1 Spearman 32 19 Dannen (_ "Dannen")} {SOUTHWEST}
{NAMED_LOYAL_UNIT 1 Bowman 33 19 Efran (_ "Efran")} {SOUTHWEST}
{NAMED_LOYAL_UNIT 1 Footpad 32 18 Fargus (_ "Fargus")} {SOUTHWEST}
#Arne's mercenary band
[unit]
id=Erik
name= _ "Erik"
type=Horseman
side=1
x=33
y=21
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[unit]
id=Heine
name= _ "Heine"
type=Horseman
side=1
x=32
y=21
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
[unit]
id=Magnus
name= _ "Magnus"
type=Horseman
side=1
x=33
y=20
facing=sw
[modifications]
{TRAIT_LOYAL}
[/modifications]
[/unit]
{NAMED_LOYAL_UNIT 1 Horseman 33 21 Erik (_ "Erik")} {SOUTHWEST}
{NAMED_LOYAL_UNIT 1 Horseman 32 21 Heine (_ "Heine")} {SOUTHWEST}
{NAMED_LOYAL_UNIT 1 Horseman 33 20 Magnus (_ "Magnus")} {SOUTHWEST}
#undef SOUTHWEST
team_name=good
user_team_name=_"Humans"

View file

@ -388,18 +388,10 @@
x=1,1,3,4,8
y=6,4,3,3,1
[/move_unit_fake]
[unit]
id=Brena
name= _ "Brena"
type=Iron Mauler
side=1
[modifications]
{TRAIT_STRONG}
{TRAIT_LOYAL}
[/modifications]
x=8
y=1
[/unit]
{NAMED_LOYAL_UNIT 1 (Iron Mauler) 8 1 Brena (_ "Brena")}
[+modifications]
{TRAIT_STRONG}
[/modifications]
[message]
speaker=Brena
message= _ "Greetings. I am Brena, a knight errant. I saw you pursuing and fighting the foul undead. Are there more of them to be destroyed?"