diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/global.h | 4 | ||||
| -rw-r--r-- | include/secret_base.h | 15 | 
2 files changed, 11 insertions, 8 deletions
| diff --git a/include/global.h b/include/global.h index e6a073aa5..7c1ac9c68 100644 --- a/include/global.h +++ b/include/global.h @@ -130,12 +130,12 @@ struct UCoords16  struct SecretBaseRecord  { -    /*ID?*/ /*0x1A08*/ u8 secretBaseId; +    /*0x1A08*/ u8 secretBaseId;      /*0x1A09*/ u8 sbr_field_1_0:4;      /*0x1A09*/ u8 gender:1;      /*0x1A09*/ u8 sbr_field_1_5:1;      /*0x1A09*/ u8 sbr_field_1_6:2; -    /*0x1A0A*/ u8 sbr_field_2[7]; // 0xFF bytes? +    /*0x1A0A*/ u8 playerName[OT_NAME_LENGTH];      /*0x1A11*/ u8 trainerId[4]; // byte 0 is used for determining trainer class      /*0x1A16*/ u16 sbr_field_e;      /*0x1A18*/ u8 sbr_field_10; diff --git a/include/secret_base.h b/include/secret_base.h index 0c4ae6694..07784556f 100644 --- a/include/secret_base.h +++ b/include/secret_base.h @@ -1,17 +1,20 @@  #ifndef GUARD_SECRET_BASE_H  #define GUARD_SECRET_BASE_H +// Maximum number of secret bases the game can store. This include 1 for the player, and up to 19 others from linked players. +#define MAX_SECRET_BASES 20 +  void ResetSecretBases(void); -void sub_80BB970(struct MapEvents *); +void sub_80BB970(struct MapEvents *events);  u8 sub_80BBB24(void); -void sub_80BBCCC(u8); +void sub_80BBCCC(u8 flagIn);  void sub_80BC038(struct MapPosition *, struct MapEvents *);  u8 sub_80BC050(); -u8 *GetSecretBaseMapName(u8 *); +u8 *GetSecretBaseMapName(u8 *dest);  void sub_80BC300(); -u8 sub_80BCCA4(u8); +u8 sub_80BCCA4(u8 secretBaseIndex);  const u8 *sub_80BCCE8(void); -void sub_80BCF1C(u8); -void sub_80BD674(void *, u32, u8); +void sub_80BCF1C(u8 taskId); +void sub_80BD674(void *playerRecords, u32 size, u8 c);  #endif // GUARD_SECRET_BASE_H | 
