From fa8e3334b3c3eab38213e6c4c08110f9a7c23788 Mon Sep 17 00:00:00 2001 From: Rangi Date: Sun, 20 Mar 2022 20:01:08 -0400 Subject: Replace magic numbers with constants --- engine/pokemon/move_mon.asm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/pokemon/move_mon.asm b/engine/pokemon/move_mon.asm index 80045c15..a4b5df6c 100644 --- a/engine/pokemon/move_mon.asm +++ b/engine/pokemon/move_mon.asm @@ -864,7 +864,7 @@ RetrieveBreedmon: add hl, bc ld d, h ld e, l - ld hl, $a + ld hl, MON_EXP + 2 add hl, bc push bc ld b, TRUE @@ -887,7 +887,7 @@ RetrieveBreedmon: ld d, a callfar CalcExpAtLevel pop bc - ld hl, $8 + ld hl, MON_EXP add hl, bc ldh a, [hMultiplicand] ld [hli], a @@ -1009,7 +1009,7 @@ SendMonIntoBox: ; Set all 5 Experience Values to 0 xor a - ld b, 2 * 5 + ld b, 2 * NUM_EXP_STATS .loop2 ld [de], a inc de -- cgit v1.2.3