summaryrefslogtreecommitdiff
path: root/engine/battle/animations.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-09-17 12:37:47 -0700
committeryenatch <yenatch@gmail.com>2014-09-17 12:37:47 -0700
commitaa361c3bf7a302dd9a883ff869c06305f3fc0436 (patch)
treed26d7728566569e91341ffd5f72e8396431134b3 /engine/battle/animations.asm
parent29aff84107a6463a94f0d7d81de8a1603e0d741f (diff)
Use move animation constants instead of static values.
This allows new moves and animations to be added without overlap.
Diffstat (limited to 'engine/battle/animations.asm')
-rwxr-xr-xengine/battle/animations.asm14
1 files changed, 7 insertions, 7 deletions
diff --git a/engine/battle/animations.asm b/engine/battle/animations.asm
index cc598de4..a8ed3865 100755
--- a/engine/battle/animations.asm
+++ b/engine/battle/animations.asm
@@ -525,9 +525,9 @@ Func_78e23: ; 78e23 (1e:4e23)
ld [wcc79], a
ld b, $e4
ld a, [W_ANIMATIONID] ; W_ANIMATIONID
- cp $aa
+ cp ANIM_AA
jr c, .asm_78e3f
- cp $ae
+ cp ANIM_AD + 1
jr nc, .asm_78e3f
ld b, $f0
.asm_78e3f
@@ -697,13 +697,13 @@ AnimationIdSpecialEffects: ; 78ef5 (1e:4ef5)
db ROCK_SLIDE
dw DoRockSlideSpecialEffects
- db $AA
+ db ANIM_AA
dw Func_79041
- db $AB
+ db ANIM_AB
dw Func_7904c
- db $AC
+ db ANIM_AC
dw Func_7907c
db TOSS_ANIM
@@ -2855,10 +2855,10 @@ TossBallAnimation: ; 79e16 (1e:5e16)
.PokeBallAnimations: ; 79e50 (1e:5e50)
; sequence of animations that make up the Poké Ball toss
- db POOF_ANIM,HIDEPIC_ANIM,$C2,POOF_ANIM,SHOWPIC_ANIM
+ db POOF_ANIM,HIDEPIC_ANIM,SHAKE_ANIM,POOF_ANIM,SHOWPIC_ANIM
.BlockBall ; 5E55
- ld a,$C1
+ ld a,TOSS_ANIM
ld [W_ANIMATIONID],a
call PlayAnimation
ld a,(SFX_08_43 - SFX_Headers_08) / 3