summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <remy.oukaour+rangi42@gmail.com>2020-10-14 18:32:36 -0400
committerRangi <remy.oukaour+rangi42@gmail.com>2020-10-14 18:32:36 -0400
commit361540a63befc48f69981d84dde437e91411e604 (patch)
tree64c8511b3a9de6ff7b2f130a940c8d9ee4201412
parent0b3acf03c87a213527d17e0cd5a737d960ffad51 (diff)
Identify some values as relative struct offsets in MoveScreenLoop
-rw-r--r--engine/pokemon/mon_menu.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/pokemon/mon_menu.asm b/engine/pokemon/mon_menu.asm
index 2d793c79..98ebc18e 100644
--- a/engine/pokemon/mon_menu.asm
+++ b/engine/pokemon/mon_menu.asm
@@ -1015,19 +1015,19 @@ MoveScreenLoop:
push hl
call .copy_move
pop hl
- ld bc, $15
+ ld bc, wPartyMon1PP - wPartyMon1Moves
add hl, bc
call .copy_move
ld a, [wBattleMode]
jr z, .swap_moves
ld hl, wBattleMonMoves
- ld bc, $20
+ ld bc, wBattleMonStructEnd - wBattleMon
ld a, [wCurPartyMon]
call AddNTimes
push hl
call .copy_move
pop hl
- ld bc, 6
+ ld bc, wBattleMonPP - wBattleMonMoves
add hl, bc
call .copy_move