mirror of
https://github.com/zeldaret/oot.git
synced 2025-07-15 04:14:34 +00:00
Highscores array (#600)
* Highscores * Review suggestions Co-authored-by: Thar0 <maximilianc64@gmail.com>
This commit is contained in:
parent
510b3c4bd5
commit
2a13d71848
5 changed files with 24 additions and 15 deletions
|
@ -45,6 +45,8 @@
|
|||
#define CHECK_QUEST_ITEM(item) (gBitFlags[item] & gSaveContext.inventory.questItems)
|
||||
#define CHECK_DUNGEON_ITEM(item, dungeonIndex) (gSaveContext.inventory.dungeonItems[dungeonIndex] & gBitFlags[item])
|
||||
|
||||
#define HIGH_SCORE(score) (gSaveContext.highScores[score])
|
||||
|
||||
#define B_BTN_ITEM ((gSaveContext.buttonStatus[0] == ITEM_NONE) \
|
||||
? ITEM_NONE \
|
||||
: (gSaveContext.equips.buttonItems[0] == ITEM_SWORD_KNIFE) \
|
||||
|
|
|
@ -96,11 +96,8 @@ typedef struct {
|
|||
/* 0x0E64 */ FaroresWindData fw;
|
||||
/* 0x0E8C */ char unk_E8C[0x10];
|
||||
/* 0x0E9C */ s32 gsFlags[6];
|
||||
/* 0x0EB4 */ char unk_EB4[0xC];
|
||||
/* 0x0EC0 */ s32 unk_EC0;
|
||||
/* 0x0EC4 */ s32 horseRaceRecord;
|
||||
/* 0x0EC8 */ char unk_EC8[0x08];
|
||||
/* 0x0ED0 */ s32 dampeRaceTime;
|
||||
/* 0x0EB4 */ char unk_EB4[0x4];
|
||||
/* 0x0EB8 */ s32 highScores[7];
|
||||
/* 0x0ED4 */ u16 eventChkInf[14]; // "event_chk_inf"
|
||||
/* 0x0EF0 */ u16 itemGetInf[4]; // "item_get_inf"
|
||||
/* 0x0EF8 */ u16 infTable[30]; // "inf_table"
|
||||
|
@ -189,4 +186,14 @@ typedef enum {
|
|||
/* 0xFF */ BTN_DISABLED = 0xFF
|
||||
} ButtonStatus;
|
||||
|
||||
typedef enum {
|
||||
/* 0x00 */ HS_HBA, // horseback archery
|
||||
/* 0x01 */ HS_POE_POINTS,
|
||||
/* 0x02 */ HS_FISHING,
|
||||
/* 0x03 */ HS_HORSE_RACE,
|
||||
/* 0x04 */ HS_MARATHON,
|
||||
/* 0x05 */ HS_UNK_05,
|
||||
/* 0x06 */ HS_DAMPE_RACE
|
||||
} HighScores;
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue