diff options
author | yenatch <yenatch@gmail.com> | 2014-06-10 23:23:55 -0700 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2014-06-10 23:24:25 -0700 |
commit | 23f9b5d21e93f1b3c8de5e4ecf72da89265ccea8 (patch) | |
tree | 3030a3222c2c51e2d3c139215345872e80da1fdc /battle/core.asm | |
parent | 86c1e0feea0ba487b020b801835aa19b221edb4d (diff) |
Use constants for move struct positioning.
This eliminates the need for arbitrary move labels like Move2 and Move1 that don't have anything to do with their respective moves.
Diffstat (limited to 'battle/core.asm')
-rw-r--r-- | battle/core.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/battle/core.asm b/battle/core.asm index b4678e8f9..9f3dbc661 100644 --- a/battle/core.asm +++ b/battle/core.asm @@ -915,7 +915,7 @@ GetMoveEffect: ; 3c5ec ld a, b dec a ld hl, Moves + MOVE_EFFECT - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld a, BANK(Moves) call GetFarByte @@ -3436,7 +3436,7 @@ Function3d5d7: ; 3d5d7 push bc dec a ld hl, Moves + MOVE_ANIM - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld de, EnemyMoveAnimation ld a, BANK(Moves) @@ -8580,7 +8580,7 @@ Function3f662: ; 3f662 push hl dec a ld hl, Moves + MOVE_PP - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld a, BANK(Moves) call GetFarByte |