diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2017-09-02 22:31:37 +0200 |
---|---|---|
committer | DizzyEggg <jajkodizzy@wp.pl> | 2017-09-02 22:31:37 +0200 |
commit | b5fea95a460d97a2b3660fcc013bf88f99b3269c (patch) | |
tree | 6f9480bc40b582776a716ca150cf4c67247eadd3 /include/global.h | |
parent | a4cc67008e29b9a54c67c89f12b0cdd014cf31a7 (diff) |
finish event data
Diffstat (limited to 'include/global.h')
-rw-r--r-- | include/global.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/include/global.h b/include/global.h index f862d0bb1..25fe47635 100644 --- a/include/global.h +++ b/include/global.h @@ -87,6 +87,19 @@ struct UCoords16 u16 y; }; +struct Pokedex +{ + /*0x00*/ u8 order; + /*0x01*/ u8 unknown1; + /*0x02*/ u8 nationalMagic; // must equal 0xDA in order to have National mode + /*0x03*/ u8 unknown2; + /*0x04*/ u32 unownPersonality; // set when you first see Unown + /*0x08*/ u32 spindaPersonality; // set when you first see Spinda + /*0x0C*/ u32 unknown3; + /*0x10*/ u8 owned[52]; + /*0x44*/ u8 seen[52]; +}; + struct SaveBlock2 { /*0x00*/ u8 playerName[8]; @@ -104,6 +117,7 @@ struct SaveBlock2 u16 optionsBattleStyle:1; // OPTIONS_BATTLE_STYLE_[SHIFT/SET] u16 optionsBattleSceneOff:1; // whether battle animations are disabled u16 regionMapZoom:1; // whether the map is zoomed in + /*0x18*/ struct Pokedex pokedex; }; extern struct SaveBlock2 *gSaveBlock2Ptr; @@ -552,6 +566,9 @@ struct RecordMixingGift struct RecordMixingGiftData data; }; +#define FLAGS_NUMBER 300 +#define VARS_NUMBER 256 + struct SaveBlock1 { /*0x00*/ struct Coords16 pos; @@ -585,8 +602,8 @@ struct SaveBlock1 /*0x9CA*/ u8 trainerRematches[100]; /*0xA30*/ struct MapObject mapObjects[16]; /*0xC70*/ struct MapObjectTemplate mapObjectTemplates[64]; - /*0x1270*/ u8 flags[300]; - /*0x139C*/ u16 vars[256]; + /*0x1270*/ u8 flags[FLAGS_NUMBER]; + /*0x139C*/ u16 vars[VARS_NUMBER]; // TODO: FIX BELOW |