Change The South Guard to use standard macros for traits.

This commit is contained in:
Bruno Wolff III 2007-08-15 02:34:59 +00:00
parent 12235b39cf
commit 520ceed08e
3 changed files with 17 additions and 95 deletions

View file

@ -168,10 +168,9 @@
user_description= _ "Moreth"
side=1
x,y=19,5
traits_description=_"loyal," + _"resilient"
[modifications]
{SG_LOYAL}
{SG_RESILIENT}
{TRAIT_LOYAL}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
@ -239,10 +238,9 @@
user_description= _ "Sir Gerrick"
{IS_HERO}
x,y=14,9
traits_description=_"valiant," + _"resilient"
[modifications]
{SG_STRONG}
{SG_RESILIENT}
{TRAIT_STRONG}
{TRAIT_RESILIENT}
[/modifications]
[/unit]
@ -428,10 +426,9 @@
#endif
description=Myssh
user_description= _ "Myssh"
traits_description=_"loyal," + _"intelligent"
[modifications]
{SG_LOYAL}
{SG_INTELLIGENT}
{TRAIT_LOYAL}
{TRAIT_INTELLIGENT}
[/modifications]
x,y=7,11
[/unit]
@ -448,10 +445,9 @@
#endif
description=Ylla
user_description= _ "Ylla"
traits_description=_"loyal," + _"quick"
[modifications]
{SG_LOYAL}
{SG_QUICK}
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
x,y=5,10
[/unit]
@ -499,8 +495,8 @@
x,y=16,12
traits_description= _"loyal," + _"quick"
[modifications]
{SG_LOYAL}
{SG_QUICK}
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
[/unit]
@ -536,8 +532,8 @@
traits_description= _"loyal," + _"strong"
x,y=16,12
[modifications]
{SG_LOYAL}
{SG_STRONG}
{TRAIT_LOYAL}
{TRAIT_STRONG}
[/modifications]
[/unit]

View file

@ -191,11 +191,10 @@
user_description= _ "Jarek"
{QUANTITY type Cavalier Dragoon Cavalryman}
x,y=41,33
traits_description=_"strong," + _"quick"
upkeep=full
[modifications]
{SG_STRONG}
{SG_QUICK}
{TRAIT_STRONG}
{TRAIT_QUICK}
[/modifications]
[/unit]
@ -274,8 +273,8 @@
side=1
x,y=18,6
[modifications]
{SG_LOYAL}
{SG_QUICK}
{TRAIT_LOYAL}
{TRAIT_QUICK}
[/modifications]
[/unit]

View file

@ -127,78 +127,6 @@
[/advancement]
#enddef
#define SG_STRONG
[trait]
id=strong
male_name= _ "strong"
female_name= _ "female^strong"
[effect]
apply_to=attack
range=melee
increase_damage=2
[/effect]
[effect]
apply_to=hitpoints
increase_total=2
heal_full=yes
[/effect]
[/trait]
#enddef
#define SG_RESILIENT
[trait]
id=resilient
male_name= _ "resilient"
female_name= _ "female^resilient"
[effect]
apply_to=hitpoints
increase_total=7
#make sure the unit starts at full health
heal_full=yes
[/effect]
[/trait]
#enddef
#define SG_QUICK
[trait]
id=quick
male_name= _ "quick"
female_name= _ "female^quick"
[effect]
apply_to=movement
increase=1
[/effect]
[effect]
apply_to=hitpoints
increase_total=-10%
heal_full=yes
[/effect]
[/trait]
#enddef
#define SG_INTELLIGENT
[trait]
id=intelligent
male_name= _ "intelligent"
female_name= _ "female^intelligent"
[effect]
apply_to=max_experience
increase=-20%
[/effect]
[/trait]
#enddef
#define SG_LOYAL
[trait]
id=loyal
male_name= _ "loyal"
female_name= _ "female^loyal"
[effect]
apply_to=loyal
[/effect]
[/trait]
#enddef
#define SG_UNIT TYPE DESCRIPTION USER_DESCRIPTION SIDE X Y
[unit]
type={TYPE}
@ -206,9 +134,8 @@
description={DESCRIPTION}
user_description={USER_DESCRIPTION}
x,y={X},{Y}
traits_description= _ "loyal"
[modifications]
{SG_LOYAL}
{TRAIT_LOYAL}
[/modifications]
[/unit]
#enddef