mirror of
https://github.com/pret/pokered.git
synced 2026-04-26 01:11:14 -05:00
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:
parent
7e6fdbbda7
commit
e0067f636c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user