Update haze.asm

line 62 was hardcoded as ld b, $8 which has since been replaced by NUM_STAT_MODS on other files -- see engine/battle/core.asm and the .statModLoop in LoadBattleMonFromParty and LoadEnemyMonFromParty.

line 70 was hardcoded as ld b, $8 which is in vanilla equal to (NUM_STATS - 1) * 2. This is inspired by another engine/battle/core.asm loop in the LoadEnemyMonFromParty, however, this particular syntax of -1 then *2 was used in engine/battle/move_effects/transform.asm and noted to be Attack, Defense, Speed, and Special stats.
This commit is contained in:
DrNyk 2026-01-13 13:34:37 -05:00 committed by GitHub
parent 7e6fdbbda7
commit e0067f636c
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 ; NUM_STATS normally counts HP, Attack, etc. But we don't reset MaxHP here. We skip that (first item of stats) and start with the second item which is Attack. Each stat is a dw.
.loop
ld a, [hli]
ld [de], a