Identify some values as relative struct offsets in MoveScreenLoop

This commit is contained in:
Rangi 2020-10-14 18:32:41 -04:00
parent 80f7504f49
commit 406ac7afbb

View File

@ -1016,19 +1016,19 @@ MoveScreenLoop:
push hl push hl
call .copy_move call .copy_move
pop hl pop hl
ld bc, $15 ld bc, wPartyMon1PP - wPartyMon1Moves
add hl, bc add hl, bc
call .copy_move call .copy_move
ld a, [wBattleMode] ld a, [wBattleMode]
jr z, .swap_moves jr z, .swap_moves
ld hl, wBattleMonMoves ld hl, wBattleMonMoves
ld bc, $20 ld bc, wBattleMonStructEnd - wBattleMon
ld a, [wCurPartyMon] ld a, [wCurPartyMon]
call AddNTimes call AddNTimes
push hl push hl
call .copy_move call .copy_move
pop hl pop hl
ld bc, 6 ld bc, wBattleMonPP - wBattleMonMoves
add hl, bc add hl, bc
call .copy_move call .copy_move