summaryrefslogtreecommitdiff
path: root/engine/battle/1c.asm
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-06-14 04:12:40 -0700
committeryenatch <yenatch@gmail.com>2014-06-14 04:12:40 -0700
commit53ae0e93fad9f4c3eaef92f102b1eeb531e59d68 (patch)
treecfc859d11d462e8b4bab1968360a9a85cd83154d /engine/battle/1c.asm
parent9eefed45f7ff3b9ee6023fb0829528e34aa0729a (diff)
Use monster struct macros in wram. Rename related labels for consistency.
Diffstat (limited to 'engine/battle/1c.asm')
-rwxr-xr-xengine/battle/1c.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/battle/1c.asm b/engine/battle/1c.asm
index d936c7e5..242b8d66 100755
--- a/engine/battle/1c.asm
+++ b/engine/battle/1c.asm
@@ -170,16 +170,16 @@ GetBattleTransitionID_WildOrTrainer: ; 709e2 (1c:49e2)
ret
GetBattleTransitionID_CompareLevels: ; 709ef (1c:49ef)
- ld hl, W_PARTYMON1_HP
+ ld hl, wPartyMon1HP
.faintedLoop
ld a, [hli]
or [hl]
jr nz, .notFainted
- ld de, W_PARTYMON2DATA - (W_PARTYMON1DATA + 1)
+ ld de, wPartyMon2 - (wPartyMon1 + 1)
add hl, de
jr .faintedLoop
.notFainted
- ld de, W_PARTYMON1_LEVEL - (W_PARTYMON1_HP + 1)
+ ld de, wPartyMon1Level - (wPartyMon1HP + 1)
add hl, de
ld a, [hl]
add $3