New storm trident that uses the new animations.

A known bug in the previous version and in this version is that the
unit disappears when the lightning is cast.
This commit is contained in:
Richard Kettering 2008-12-08 03:53:14 +00:00
parent 43d59afff4
commit 25209ab400

View file

@ -508,6 +508,34 @@
#enddef
#wmllint: markcheck off
#define STORM_TRIDENT_LIGHTNING DIRECTION_NUMBER
[effect]
apply_to=new_animation
name="storm trident"
[attack_anim]
[filter_attack]
name="storm trident"
[/filter_attack]
{LIGHTNING_BOLT {DIRECTION_NUMBER} }
[if]
hits=no
[frame]
begin=-200
end=0
sound=lightning-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-200
end=0
sound=lightning.ogg
[/frame]
[/else]
[/attack_anim]
[/effect]
#enddef
#define OBJ_TRIDENT_STORM X Y ID
{PICKUPPABLE_ITEM {ID} {X} {Y} race=merman items/storm-trident.png _"Should $unit.name pick up the trident?" _"Only the mermen can use this item!" (
[object]
@ -528,37 +556,10 @@
damage=14
number=2
[/effect]
[effect]
apply_to=new_animation
name="storm trident"
[attack_anim]
[filter_attack]
name="storm trident"
[/filter_attack]
[missile_frame]
begin=-150
end=0
image=projectiles/lightning-n.png
image_diagonal=projectiles/lightning-ne.png
[/missile_frame]
[if]
hits=no
[frame]
begin=-200
end=0
sound=lightning-miss.ogg
[/frame]
[/if]
[else]
hits=yes
[frame]
begin=-200
end=0
sound=lightning.ogg
[/frame]
[/else]
[/attack_anim]
[/effect]
{STORM_TRIDENT_LIGHTNING 1}
{STORM_TRIDENT_LIGHTNING 2}
{STORM_TRIDENT_LIGHTNING 3}
[/object]
)}
#enddef