mirror of
https://github.com/pret/pokered.git
synced 2024-12-02 19:06:40 +00: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 New Issue
Block a user