aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
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 /scripts
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 'scripts')
-rw-r--r--scripts/Daycare.asm4
-rw-r--r--scripts/NameRatersHouse.asm2
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/Daycare.asm b/scripts/Daycare.asm
index 05b69935..f7354e37 100644
--- a/scripts/Daycare.asm
+++ b/scripts/Daycare.asm
@@ -173,7 +173,7 @@ DaycareGentlemanText:
ld a, [wPartyCount]
dec a
push af
- ld bc, wPartyMon2 - wPartyMon1
+ ld bc, PARTYMON_STRUCT_LENGTH
push bc
ld hl, wPartyMon1Moves
call AddNTimes
@@ -190,7 +190,7 @@ DaycareGentlemanText:
call AddNTimes
ld d, h
ld e, l
- ld bc, wPartyMon1MaxHP - wPartyMon1HP
+ ld bc, MON_MAXHP - MON_HP
add hl, bc
ld a, [hli]
ld [de], a
diff --git a/scripts/NameRatersHouse.asm b/scripts/NameRatersHouse.asm
index 61b10a3e..b1e3bf95 100644
--- a/scripts/NameRatersHouse.asm
+++ b/scripts/NameRatersHouse.asm
@@ -19,7 +19,7 @@ NameRatersHouseCheckMonOTScript:
call .check_match_loop
jr c, .no_match
ld hl, wPartyMon1OTID
- ld bc, wPartyMon2 - wPartyMon1
+ ld bc, PARTYMON_STRUCT_LENGTH
ld a, [wWhichPokemon]
call AddNTimes
ld de, wPlayerID