aboutsummaryrefslogtreecommitdiffstats
path: root/home
diff options
context:
space:
mode:
authorNarishma-gb <194818981+Narishma-gb@users.noreply.github.com>2025-11-27 19:39:25 +0100
committerGitHub <noreply@github.com>2025-11-27 13:39:25 -0500
commit3a4382c6055e21da72357dd18638947a2acbbda9 (patch)
treecb383fbd6a0dc57e3b0f9e9483c2a3f898f42f96 /home
parentAvoid magic numbers for most `CopyData` calls (#542) (diff)
downloadpokeyellow-3a4382c6055e21da72357dd18638947a2acbbda9.tar.gz
pokeyellow-3a4382c6055e21da72357dd18638947a2acbbda9.tar.xz
pokeyellow-3a4382c6055e21da72357dd18638947a2acbbda9.zip
Use more Pokemon data constants, create MOVE_NAME_LENGTH (#543)
Diffstat (limited to 'home')
-rw-r--r--home/list_menu.asm2
-rw-r--r--home/move_mon.asm2
2 files changed, 2 insertions, 2 deletions
diff --git a/home/list_menu.asm b/home/list_menu.asm
index 00b5704a..d0d3f732 100644
--- a/home/list_menu.asm
+++ b/home/list_menu.asm
@@ -456,7 +456,7 @@ PrintListMenuEntries::
ld [wLoadedMonLevel], a
.skipCopyingLevel
pop hl
- ld bc, $1c
+ ld bc, SCREEN_WIDTH + 8 ; 1 row down and 8 columns right
add hl, bc
call PrintLevel
pop af
diff --git a/home/move_mon.asm b/home/move_mon.asm
index 45b10322..cb19d0e3 100644
--- a/home/move_mon.asm
+++ b/home/move_mon.asm
@@ -94,7 +94,7 @@ CalcStat::
srl c
pop hl
push bc
- ld bc, wPartyMon1DVs - (wPartyMon1HPExp - 1) ; also wEnemyMonDVs - wEnemyMonHP
+ ld bc, MON_DVS - (MON_HP_EXP - 1)
add hl, bc
pop bc
ld a, c