Replace hard-coded numbers with constants in haze.asm (#564)

This commit is contained in:
DrNyk 2026-01-17 16:42:12 -05:00 committed by GitHub
parent 85b9d866c8
commit 4e22af12bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -59,7 +59,7 @@ CureVolatileStatuses:
ret
ResetStatMods:
ld b, $8
ld b, NUM_STAT_MODS
.loop
ld [hli], a
dec b
@ -67,7 +67,7 @@ ResetStatMods:
ret
ResetStats:
ld b, $8
ld b, (NUM_STATS - 1) * 2 ; doesn't reset STAT_HEALTH
.loop
ld a, [hli]
ld [de], a