AnimationWML: simplify DEFENSE_ANIM_DIRECTIONAL_RANGE macro

This commit is contained in:
David Mikos 2013-11-10 15:53:01 +10:30
parent 6409d08243
commit 42e706ec6f

View file

@ -159,34 +159,26 @@
#define DEFENSE_ANIM_DIRECTIONAL_RANGE REACTION_SE_IMAGE BASE_SE_IMAGE REACTION_NE_IMAGE BASE_NE_IMAGE HIT_SOUND RANGE
[defend]
direction=sw,s,se
[filter_attack]
range={RANGE}
[/filter_attack]
start_time=-126
[frame]
image={BASE_SE_IMAGE}:1,{REACTION_SE_IMAGE}:250,{BASE_SE_IMAGE}:1
[/frame]
[if]
hit_sound_start_time=-25
hits=hit
[hit_sound_frame]
sound={HIT_SOUND}
[/hit_sound_frame]
direction=s,se,sw
[frame]
image={BASE_SE_IMAGE}:1,{REACTION_SE_IMAGE}:250,{BASE_SE_IMAGE}:1
[/frame]
[/if]
[/defend]
[defend]
direction=nw,n,ne
[filter_attack]
range={RANGE}
[/filter_attack]
start_time=-126
[frame]
image={BASE_NE_IMAGE}:1,{REACTION_NE_IMAGE}:250,{BASE_NE_IMAGE}:1
[/frame]
[else]
direction=n,ne,nw
[frame]
image={BASE_NE_IMAGE}:1,{REACTION_NE_IMAGE}:250,{BASE_NE_IMAGE}:1
[/frame]
[/else]
[if]
hit_sound_start_time=-25
hits=hit
hit_sound_start_time=-25
[hit_sound_frame]
sound={HIT_SOUND}
[/hit_sound_frame]