mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Replace magic numbers with constants (#894)
This commit is contained in:
parent
9aac39bebc
commit
9b4ebe9400
@ -864,7 +864,7 @@ RetrieveBreedmon:
|
|||||||
add hl, bc
|
add hl, bc
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, $a
|
ld hl, MON_EXP + 2
|
||||||
add hl, bc
|
add hl, bc
|
||||||
push bc
|
push bc
|
||||||
ld b, TRUE
|
ld b, TRUE
|
||||||
@ -887,7 +887,7 @@ RetrieveBreedmon:
|
|||||||
ld d, a
|
ld d, a
|
||||||
callfar CalcExpAtLevel
|
callfar CalcExpAtLevel
|
||||||
pop bc
|
pop bc
|
||||||
ld hl, $8
|
ld hl, MON_EXP
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ldh a, [hMultiplicand]
|
ldh a, [hMultiplicand]
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
@ -1009,7 +1009,7 @@ SendMonIntoBox:
|
|||||||
|
|
||||||
; Set all 5 Experience Values to 0
|
; Set all 5 Experience Values to 0
|
||||||
xor a
|
xor a
|
||||||
ld b, 2 * 5
|
ld b, 2 * NUM_EXP_STATS
|
||||||
.loop2
|
.loop2
|
||||||
ld [de], a
|
ld [de], a
|
||||||
inc de
|
inc de
|
||||||
|
Loading…
Reference in New Issue
Block a user