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/ai/scoring.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/ai/scoring.asm')
-rw-r--r-- | battle/ai/scoring.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/battle/ai/scoring.asm b/battle/ai/scoring.asm index 19c652370..7a34ec3d0 100644 --- a/battle/ai/scoring.asm +++ b/battle/ai/scoring.asm @@ -1658,8 +1658,8 @@ AIScoring_Conversion2: ; 38d98 push hl dec a - ld hl, Moves + PlayerMoveType - PlayerMoveStruct - ld bc, Move2 - Move1 + ld hl, Moves + MOVE_TYPE + ld bc, MOVE_LENGTH call AddNTimes ld a, BANK(Moves) @@ -3314,7 +3314,7 @@ AIGetEnemyMove: ; 39508 push bc dec a ld hl, Moves - ld bc, Move2 - Move1 + ld bc, MOVE_LENGTH call AddNTimes ld de, EnemyMoveStruct |