diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2021-03-12 15:37:31 -0500 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2021-03-12 15:37:31 -0500 |
commit | e32a1571afc4a9c855c35b6ba17e84603d1b82e8 (patch) | |
tree | 09f02275347859f60de8f943db00d7d1961d8a18 /include | |
parent | 665dffe048bfbdbd53057beefb9a09acbd6f048a (diff) |
Resolve link comm buffers in gBattleStruct
Diffstat (limited to 'include')
-rw-r--r-- | include/battle.h | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/include/battle.h b/include/battle.h index c0baaf313..fa6c3aa96 100644 --- a/include/battle.h +++ b/include/battle.h @@ -344,6 +344,15 @@ struct BattleTvMovePoints s16 points[2][PARTY_SIZE * 4]; }; +struct MultiPartnerEnigmaBerry +{ + u8 field_0; + u8 field_1; + u8 vsScreenHealthFlagsLo; + u8 vsScreenHealthFlagsHi; + struct BattleEnigmaBerry battleEnigmaBerry; +}; + struct BattleStruct { u8 turnEffectsTracker; @@ -419,11 +428,10 @@ struct BattleStruct u8 givenExpMons; // Bits for enemy party's pokemon that gave exp to player's party. u8 lastTakenMoveFrom[MAX_BATTLERS_COUNT * MAX_BATTLERS_COUNT * 2]; // a 3-D array [target][attacker][byte] u16 castformPalette[MAX_BATTLERS_COUNT][16]; - u8 field_180; // weird field, used in battle_main.c, once accessed as an array of u32 overwriting the field below - u8 field_181; - u8 vsScreenHealthFlagsLo; - u8 vsScreenHealthFlagsHi; // Last bit is 'has frontier pass' - struct BattleEnigmaBerry battleEnigmaBerry; + union { + struct MultiPartnerEnigmaBerry multiPartnerEnigmaBerry; + u32 battleVideo[2]; + } multiBuffer; u8 wishPerishSongState; u8 wishPerishSongBattlerId; bool8 overworldWeatherDone; |