Added the elemental trait for the Dust Devil and the Fire Guardians.

This commit is contained in:
Steven Panek 2010-03-27 18:02:41 +00:00
parent 629ce20be7
commit 9ac436c67a
3 changed files with 19 additions and 13 deletions

View file

@ -3,6 +3,7 @@
id=Dust Devil
name= _ "Dust Devil"
race=monster
{TRAIT_ELEMENTAL}
usage=scout
image="units/monsters/dust-devil.png"
level=1
@ -37,19 +38,6 @@
cold=150
arcane=140
[/resistance]
# all dust devils get an invisible trait that sets the not_living status for
# them so that they are immune to poison and healing
[trait]
id=dustdevilimmunities
availability="musthave"
male_name=""
female_name=""
description="" # wmllint: ignore
[effect]
apply_to=status
add=not_living
[/effect]
[/trait]
[attack]
name=twister
description= _ "twister"

View file

@ -3,6 +3,7 @@
id=Lava Monster
name= _ "Fire Guardian"
race=monster
{TRAIT_ELEMENTAL}
image="units/monsters/fireghost.png"
{DEFENSE_ANIM "units/monsters/fireghost-defend.png" "units/monsters/fireghost.png" groan.wav }
hitpoints=20

View file

@ -0,0 +1,17 @@
#textdomain wesnoth-utbs
# Traits definitions
#define TRAIT_ELEMENTAL
# Units with trait Elemental cannot be drained, poisoned or plagued.
[trait]
id=elemental
availability="musthave"
name= _ "elemental"
female_name= _ "female^elemental"
description= _ "Immune to drain, poison and plague"
[effect]
apply_to=status
add=not_living
[/effect]
[/trait]
#enddef