mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-14 02:27:21 -07:00
Quest Cleanup (#3178)
* Change most n64ddFlag checks to IS_RANDO checks * Change most isMasterQuest checks to IS_MASTER_QUEST checks * Change most isBossRush checks to IS_BOSS_RUSH checks * Replace isMasterQuest & isBossRush with questId * Replace n64ddFlag with questId Also restore authentic n64ddFlag behavior except savefile saving/loading * Move quest enum from file_choose.h to z64save.h * Update macros to not take gSaveContext
This commit is contained in:
parent
6dd3437ad4
commit
d63c9d1774
133 changed files with 677 additions and 628 deletions
|
@ -284,8 +284,7 @@ typedef struct {
|
|||
/* 0x1428 */ u16 pendingSaleMod;
|
||||
// #region SOH [General]
|
||||
// Upstream TODO: Move these to their own struct or name to more obviously specific to SoH
|
||||
/* */ uint32_t isMasterQuest;
|
||||
/* */ uint32_t isBossRush;
|
||||
/* */ uint8_t questId;
|
||||
/* */ uint32_t isBossRushPaused;
|
||||
/* */ uint8_t bossRushOptions[BOSSRUSH_OPTIONS_AMOUNT];
|
||||
/* */ u8 mqDungeonCount;
|
||||
|
@ -328,6 +327,18 @@ typedef struct {
|
|||
// #endregion
|
||||
} SaveContext; // size = 0x1428
|
||||
|
||||
typedef enum {
|
||||
/* 00 */ QUEST_NORMAL,
|
||||
/* 01 */ QUEST_MASTER,
|
||||
/* 02 */ QUEST_RANDOMIZER,
|
||||
/* 03 */ QUEST_BOSSRUSH,
|
||||
} Quest;
|
||||
|
||||
#define IS_VANILLA (gSaveContext.questId == QUEST_NORMAL)
|
||||
#define IS_MASTER_QUEST (gSaveContext.questId == QUEST_MASTER)
|
||||
#define IS_RANDO (gSaveContext.questId == QUEST_RANDOMIZER)
|
||||
#define IS_BOSS_RUSH (gSaveContext.questId == QUEST_BOSSRUSH)
|
||||
|
||||
typedef enum {
|
||||
/* 0x00 */ BTN_ENABLED,
|
||||
/* 0xFF */ BTN_DISABLED = 0xFF
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue