mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-11-07 06:00:59 +13:00
Use unions rather than negative offsets
This commit is contained in:
parent
9ea25bc8cd
commit
901844f536
6
wram.asm
6
wram.asm
|
|
@ -3137,10 +3137,12 @@ wEnemyPartyCount:: ds 1 ; d89c
|
|||
wEnemyPartyMons:: ds PARTY_LENGTH + 1 ; d89d
|
||||
|
||||
; Overload enemy party data
|
||||
UNION
|
||||
|
||||
wWaterRate:: db ; d8a4
|
||||
wWaterMons:: db ; d8a5
|
||||
|
||||
ds wWaterRate - @
|
||||
NEXTU
|
||||
|
||||
wEnemyMons:: ; d8a4
|
||||
wEnemyMon1:: party_struct wEnemyMon1
|
||||
|
|
@ -3153,6 +3155,8 @@ wEnemyMon6:: party_struct wEnemyMon6
|
|||
wEnemyMonOT:: ds NAME_LENGTH * PARTY_LENGTH ; d9ac
|
||||
wEnemyMonNicks:: ds NAME_LENGTH * PARTY_LENGTH ; d9ee
|
||||
|
||||
ENDU
|
||||
|
||||
|
||||
wTrainerHeaderPtr:: ; da30
|
||||
ds 2
|
||||
|
|
|
|||
Loading…
Reference in a new issue