summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIdain <luiscarlosholguinperez@outlook.com>2022-03-20 19:58:18 -0400
committerGitHub <noreply@github.com>2022-03-20 19:58:18 -0400
commit9b4ebe940023ef346593db9612ab29fc522eb767 (patch)
tree5bde0aeeb762a834c63c7ea19aa28dc0a7410d5a
parent9aac39bebc6fbb1f7442e9efadf88e2bfcd13a01 (diff)
Replace magic numbers with constants (#894)
-rw-r--r--engine/pokemon/move_mon.asm6
1 files changed, 3 insertions, 3 deletions
diff --git a/engine/pokemon/move_mon.asm b/engine/pokemon/move_mon.asm
index e011ef7bb..2958b5e99 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