ref: 901844f536e7eef58045c3dbeb6387e2c78ba870
parent: 9ea25bc8cd32df5b3bcf6333c3d2582e1b11f2dd
author: Pokechu22 <Pokechu022@gmail.com>
date: Fri Sep 29 15:16:08 EDT 2017
Use unions rather than negative offsets
--- a/wram.asm
+++ b/wram.asm
@@ -3137,10 +3137,12 @@
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
@@ -3152,6 +3154,8 @@
wEnemyMonOT:: ds NAME_LENGTH * PARTY_LENGTH ; d9ac
wEnemyMonNicks:: ds NAME_LENGTH * PARTY_LENGTH ; d9ee
+
+ENDU
wTrainerHeaderPtr:: ; da30