mirror of
https://github.com/zeldaret/mm.git
synced 2026-07-09 21:51:32 -04:00
Z_message (2 NON_MATCHINGS) (#1398)
* matched func_8014D62C * matched func_8014D304 * matched func_80149048 * matched func_80159438 & func_8014CDF0 * matched Message_GetState * matched func_80152CAC * matched func_80149454 * matched func_801491DC * matched func_80150A84 * matched func_801496C8 * matched func_80149C18 * func_8014995C progress * matched 8014995C * matched func_80153EF0 * fix MessageContext lottery guess array size to match func_801496C8 * matched 80148D64 * matched func_8014AAD0 * progress func_8014CFDC * matched func_8014CFDC * progress func_801514B0 * progress#2 func_801514B0 * matched func_801514B0 * progress func_8014C70C * Progress on few functions * fix some variables & func name * change unk11F00 type and usages * func_8014C70C matched * match func_8015268c * fix building * format * engi message WIP * enums, cleanup * missed one * oops * even more enums * another oops * func_8015E7EC NON_MATCHING * cleanup Message_DrawTextCredits * MSGMODE cleanup * import sFontWidths * Import z_message_nes data * Message_DrawTextNES draft * fix types in message_nes * Message_DrawTextNES NON_EQUIVALENT * Message_DrawTextNES improvement Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> * Import bss * fixes * Data clean up * Delete Message_Decode m2c output * Readd Message_Update data * import data * func declaration * cleanup * Language enum * fix naming, some flags * Update functions and variables related to the bombers notebook event queue. * Update renamed variables.txt * format * attempt Message_DecodeCredits * begin Message_DecodeNES * decode cleanup * incremental improvements on Message_DecodeNES * oops * more progress * first attempt at Message_Decode * cleanup Message_Decode * Message_Decode progress * good progress on decode loops * more progress * good Message_Decode progress, thank anon * decode creep * big improvements, thanks anon/hatal * small nes improvement * cleanup * match Message_DrawTextDefault, big progress on Message_DrawTextNES * namefixer for save structs * Some cleanup/fix non-equivalencies in decodes * cleanup * Small cleanup * func_80150A84 * TextBoxType enum usage * Format * match Message_DecodeCredit by Maide, small improvement in Message_DrawTextNES * comments * some docs * cleanup, improve matches * Some improvement Co-Authored-By: Santiago <github-santaclose-noreplay@NA.com> * Fixes * Missed * Match Message_DrawTextNES * Move functions to z64message.h * string macros * Small cleanups * 1 more small thing * decompme scratches * Cleanup * Item enum * PR * SEGMENT_ROM_START * PR * format * ocarina cleanup --------- Co-authored-by: andzura <andzura@andzura.fr> Co-authored-by: Angie <angheloalf95@gmail.com> Co-authored-by: engineer124 <engineer124engineer124@gmail.com> Co-authored-by: engineer124 <47598039+engineer124@users.noreply.github.com> Co-authored-by: Zoey Zolotova <zoey.zolotova@gmail.com> Co-authored-by: Santiago <github-santaclose-noreplay@NA.com>
This commit is contained in:
+1
-63
@@ -991,68 +991,6 @@ void func_8014116C(Gfx** gfxP, u16* arg1, u16* workBuffer, s32 width, s32 height
|
||||
// void func_80141678(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5);
|
||||
void func_80141778(Struct_80140E80* arg0, Gfx** gfxp, void* unk_18E60, GraphicsContext* gfxCtx);
|
||||
|
||||
// void func_80147520(void);
|
||||
void func_80147564(PlayState* play);
|
||||
s32 Message_ShouldAdvance(PlayState* play);
|
||||
s32 Message_ShouldAdvanceSilent(PlayState* play);
|
||||
void Message_CloseTextbox(PlayState* play);
|
||||
void func_80147818(PlayState* play, UNK_PTR puParm2, UNK_TYPE4 uParm3, UNK_TYPE4 uParm4);
|
||||
// void func_80147F18(PlayState* play, UNK_PTR puParm2, UNK_TYPE4 uParm3, UNK_TYPE4 uParm4);
|
||||
// void func_80148558(PlayState* play, UNK_PTR puParm2, UNK_TYPE4 uParm3, UNK_TYPE4 uParm4);
|
||||
void func_80148B98(PlayState* play, u8 arg1);
|
||||
// void func_80148CBC(void);
|
||||
// void func_80148D64(void);
|
||||
// void func_80149048(void);
|
||||
// void func_801491DC(void);
|
||||
// void func_80149454(void);
|
||||
// void func_801496C8(void);
|
||||
void Message_DrawTextChar(PlayState* play, TexturePtr texture, Gfx** gfxP);
|
||||
void func_80149C18(PlayState* play);
|
||||
// void Message_FindMessage(void);
|
||||
void Message_DrawItemIcon(PlayState* play, Gfx** gfxP);
|
||||
void Message_HandleOcarina(PlayState* play);
|
||||
void func_8014ADBC(PlayState* play, UNK_PTR puParm2);
|
||||
void Message_LoadItemIcon(PlayState* play, u16 itemId, s16 arg2);
|
||||
void Message_SetupLoadItemIcon(PlayState* play);
|
||||
// void func_8014CCB4(void);
|
||||
// void func_8014CDF0(void);
|
||||
// void Message_SetupLoadItemIcon(void);
|
||||
void func_8014D304(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5);
|
||||
// void func_8014D62C(void);
|
||||
// void func_8014D7B4(void);
|
||||
void func_80150A84(PlayState* play);
|
||||
void func_80150D08(PlayState* play, u32 uParm2);
|
||||
void func_801514B0(PlayState* play, u16 arg1, u8 arg2);
|
||||
void Message_StartTextbox(PlayState* play, u16 textId, Actor* actor);
|
||||
void Message_ContinueTextbox(PlayState* play, u16 textId);
|
||||
void func_80151A68(PlayState* play, u16 textId);
|
||||
void Message_BombersNotebookQueueEvent(PlayState* play, u8 event);
|
||||
// void func_80151C9C(void);
|
||||
void func_80151DA4(PlayState* play, u16 arg2);
|
||||
void func_80152434(PlayState* play, u16 arg2);
|
||||
// void func_80152464(void);
|
||||
u8 Message_GetState(MessageContext* msgCtx);
|
||||
// void func_8015268C(void);
|
||||
// void func_80152C64(void);
|
||||
// void func_80152CAC(void);
|
||||
// void func_80152EC0(void);
|
||||
// void func_80152FB8(void);
|
||||
// void func_80153750(void);
|
||||
// void func_80153E7C(void);
|
||||
// void func_80153EF0(void);
|
||||
void func_801541D4(PlayState* play, Gfx** gfxp);
|
||||
void Message_Draw(PlayState* play);
|
||||
void Message_Update(PlayState* play);
|
||||
void func_801586A4(PlayState* play);
|
||||
void Message_Init(PlayState* play);
|
||||
void Message_FindMessageNES(PlayState* play, u16 textId);
|
||||
void Message_DrawTextNES(PlayState* play, Gfx** gfxP, u16 textDrawPos);
|
||||
void Message_DecodeNES(PlayState* play);
|
||||
void Message_FindCreditsMessage(PlayState* play, u16 textId);
|
||||
void Message_FindCreditsMessage(PlayState* play, u16 textId);
|
||||
void Message_DrawTextCredits(PlayState* play, Gfx** gfxP);
|
||||
void Message_DecodeCredits(PlayState* play);
|
||||
|
||||
uintptr_t KaleidoManager_FaultAddrConv(uintptr_t address, void* param);
|
||||
void KaleidoManager_LoadOvl(KaleidoMgrOverlay* ovl);
|
||||
void KaleidoManager_ClearOvl(KaleidoMgrOverlay* ovl);
|
||||
@@ -1463,7 +1401,7 @@ void Audio_StopSequenceInCutscene(u16 seqId);
|
||||
s32 Audio_IsSequencePlaying(u8 seqId);
|
||||
void Audio_PlayBgm_StorePrevBgm(u16 seqId);
|
||||
void Audio_RestorePrevBgm(void);
|
||||
// void func_801A3000(void);
|
||||
void func_801A3000(u16 seqId, u8 ioData);
|
||||
// void func_801A3038(void);
|
||||
void Audio_PlayFanfare(u16 seqId);
|
||||
// void func_801A312C(void);
|
||||
|
||||
@@ -219,137 +219,6 @@ extern UNK_PTR D_801C5C50;
|
||||
// extern UNK_TYPE1 D_801C5C9C;
|
||||
extern UNK_PTR D_801C5CB0;
|
||||
|
||||
// extern UNK_TYPE1 D_801C6A70;
|
||||
// extern UNK_TYPE2 D_801C6A74;
|
||||
// extern UNK_TYPE2 D_801C6A78;
|
||||
// extern UNK_TYPE2 D_801C6A7C;
|
||||
// extern UNK_TYPE2 D_801C6A80;
|
||||
// extern UNK_TYPE2 D_801C6A84;
|
||||
// extern UNK_TYPE2 D_801C6A88;
|
||||
// extern UNK_TYPE2 D_801C6A8C;
|
||||
// extern UNK_TYPE2 D_801C6A90;
|
||||
// extern UNK_TYPE2 D_801C6A94;
|
||||
extern u8 gPageSwitchNextButtonStatus[6][5];
|
||||
// extern UNK_TYPE1 D_801CED40;
|
||||
// extern UNK_TYPE2 D_801CFC78;
|
||||
// extern UNK_TYPE1 D_801CFC7A;
|
||||
// extern UNK_TYPE1 D_801CFC7C;
|
||||
// extern UNK_TYPE1 D_801CFC7E;
|
||||
// extern UNK_TYPE1 D_801CFC84;
|
||||
// extern UNK_TYPE1 D_801CFC88;
|
||||
// extern UNK_TYPE1 D_801CFC8C;
|
||||
// extern UNK_TYPE1 D_801CFC8E;
|
||||
// extern UNK_TYPE1 D_801CFC92;
|
||||
extern u8 D_801CFC98;
|
||||
extern s16 D_801CFCA4[9];
|
||||
// extern UNK_TYPE2 D_801CFCAC;
|
||||
extern s16 gOcarinaSongItemMap[];
|
||||
// extern UNK_TYPE2 D_801CFCD8;
|
||||
// extern UNK_TYPE2 D_801CFCE4;
|
||||
// extern UNK_TYPE2 D_801CFCF0;
|
||||
// extern UNK_TYPE2 D_801CFCF4;
|
||||
// extern UNK_TYPE2 D_801CFCF8;
|
||||
// extern UNK_TYPE2 D_801CFCFC;
|
||||
// extern UNK_TYPE2 D_801CFD00;
|
||||
// extern UNK_TYPE2 D_801CFD04;
|
||||
// extern UNK_TYPE2 D_801CFD08;
|
||||
// extern UNK_TYPE2 D_801CFD0C;
|
||||
// extern UNK_TYPE2 D_801CFD10;
|
||||
// extern UNK_TYPE2 D_801CFD1C;
|
||||
// extern UNK_TYPE2 D_801CFD28;
|
||||
// extern UNK_TYPE2 D_801CFD2C;
|
||||
// extern UNK_TYPE2 D_801CFD30;
|
||||
// extern UNK_TYPE2 D_801CFD34;
|
||||
// extern UNK_TYPE2 D_801CFD38;
|
||||
// extern UNK_TYPE2 D_801CFD3C;
|
||||
// extern UNK_TYPE2 D_801CFD40;
|
||||
// extern UNK_TYPE2 D_801CFD44;
|
||||
// extern UNK_TYPE2 D_801CFD48;
|
||||
// extern UNK_TYPE2 D_801CFD54;
|
||||
// extern UNK_TYPE2 D_801CFD60;
|
||||
// extern UNK_TYPE2 D_801CFD64;
|
||||
// extern UNK_TYPE2 D_801CFD68;
|
||||
// extern UNK_TYPE2 D_801CFD6C;
|
||||
// extern UNK_TYPE2 D_801CFD70;
|
||||
// extern UNK_TYPE2 D_801CFD74;
|
||||
// extern UNK_TYPE2 D_801CFD78;
|
||||
// extern UNK_TYPE2 D_801CFD7C;
|
||||
// extern UNK_TYPE2 D_801CFD80;
|
||||
// extern UNK_TYPE2 D_801CFD84;
|
||||
// extern UNK_TYPE2 D_801CFD88;
|
||||
// extern UNK_TYPE2 D_801CFD8C;
|
||||
// extern UNK_TYPE2 D_801CFD90;
|
||||
extern UNK_PTR D_801CFD94;
|
||||
// extern UNK_TYPE2 D_801CFD98;
|
||||
// extern UNK_TYPE2 D_801CFD9C;
|
||||
// extern UNK_TYPE2 D_801CFDA0;
|
||||
// extern UNK_TYPE1 D_801CFDA4;
|
||||
// extern UNK_TYPE1 D_801CFDC8;
|
||||
// extern UNK_TYPE1 D_801CFDEC;
|
||||
// extern UNK_TYPE1 D_801CFE04;
|
||||
// extern UNK_TYPE1 D_801CFE1C;
|
||||
// extern UNK_TYPE1 D_801CFE34;
|
||||
// extern UNK_TYPE1 D_801CFE4C;
|
||||
// extern UNK_TYPE1 D_801CFE5C;
|
||||
// extern UNK_TYPE1 D_801CFE68;
|
||||
// extern UNK_TYPE1 D_801CFE74;
|
||||
// extern UNK_TYPE1 D_801CFEA4;
|
||||
// extern UNK_TYPE1 D_801CFED4;
|
||||
// extern UNK_TYPE1 D_801CFF04;
|
||||
// extern UNK_TYPE1 D_801CFF34;
|
||||
// extern UNK_TYPE1 D_801CFF64;
|
||||
// extern UNK_TYPE1 D_801CFF70;
|
||||
// extern UNK_TYPE1 D_801CFF7C;
|
||||
// extern UNK_TYPE1 D_801CFF88;
|
||||
// extern UNK_TYPE1 D_801CFF94;
|
||||
// extern UNK_TYPE1 D_801D0000;
|
||||
// extern UNK_TYPE1 D_801D0001;
|
||||
// extern UNK_TYPE1 D_801D001F;
|
||||
// extern UNK_TYPE1 D_801D0188;
|
||||
// extern UNK_TYPE1 D_801D023A;
|
||||
// extern UNK_TYPE1 D_801D0250;
|
||||
// extern UNK_TYPE2 D_801D0268;
|
||||
// extern UNK_TYPE1 D_801D027C;
|
||||
// extern UNK_TYPE1 D_801D0284;
|
||||
// extern UNK_TYPE1 D_801D028C;
|
||||
// extern UNK_TYPE1 D_801D02C0;
|
||||
// extern UNK_TYPE1 D_801D02D8;
|
||||
// extern UNK_TYPE1 D_801D02F8;
|
||||
// extern UNK_TYPE1 D_801D0330;
|
||||
// extern UNK_TYPE1 D_801D0334;
|
||||
// extern UNK_TYPE1 D_801D0340;
|
||||
// extern UNK_TYPE1 D_801D034C;
|
||||
// extern UNK_TYPE1 D_801D0358;
|
||||
// extern UNK_TYPE1 D_801D0364;
|
||||
// extern UNK_TYPE1 D_801D0378;
|
||||
extern char D_801D039C[];
|
||||
// extern UNK_TYPE1 D_801D03A4;
|
||||
// extern UNK_TYPE1 D_801D03A8;
|
||||
// extern UNK_TYPE1 D_801D03C8;
|
||||
// extern UNK_TYPE1 D_801D03E8;
|
||||
// extern UNK_TYPE1 D_801D03F0;
|
||||
// extern UNK_TYPE1 D_801D0401;
|
||||
// extern UNK_TYPE1 D_801D0408;
|
||||
// extern UNK_TYPE1 D_801D0428;
|
||||
// extern UNK_TYPE1 D_801D045A;
|
||||
// extern UNK_TYPE1 D_801D0462;
|
||||
//extern UNK_TYPE1 D_801D0468;
|
||||
// extern UNK_TYPE1 sNESFontWidths;
|
||||
// extern char sRupeesTextLocalization[];
|
||||
// extern UNK_TYPE1 sRupeesTextLength;
|
||||
// extern char D_801D0714[];
|
||||
// extern UNK_TYPE1 D_801D07C4;
|
||||
// extern UNK_TYPE1 D_801D07DC;
|
||||
// extern UNK_TYPE1 D_801D080C;
|
||||
// extern UNK_TYPE1 D_801D083C;
|
||||
// extern UNK_TYPE1 D_801D086C;
|
||||
// extern UNK_TYPE1 D_801D0890;
|
||||
// extern UNK_TYPE1 D_801D089C;
|
||||
// extern UNK_TYPE1 D_801D08CC;
|
||||
// extern UNK_TYPE1 D_801D08D8;
|
||||
// extern UNK_TYPE1 D_801D08E4;
|
||||
// extern UNK_TYPE1 sMaskCodeTextENG;
|
||||
// extern UNK_TYPE1 sMaskCodeTextLengthENG;
|
||||
extern KaleidoMgrOverlay gKaleidoMgrOverlayTable[2];
|
||||
// extern UNK_TYPE1 D_801D0B8C;
|
||||
extern KaleidoMgrOverlay* gKaleidoMgrCurOvl;
|
||||
|
||||
@@ -326,6 +326,27 @@ typedef enum ItemId {
|
||||
/* 0xB1 */ ITEM_MAP_POINT_MOUNTAIN_VILLAGE,
|
||||
/* 0xB2 */ ITEM_MAP_POINT_MILK_ROAD,
|
||||
/* 0xB3 */ ITEM_MAP_POINT_ZORA_CAPE,
|
||||
/* 0xB8 */ ITEM_B8 = 0xB8,
|
||||
/* 0xB9 */ ITEM_B9,
|
||||
/* 0xBA */ ITEM_BA,
|
||||
/* 0xBB */ ITEM_BB,
|
||||
/* 0xBC */ ITEM_BC,
|
||||
/* 0xBD */ ITEM_BD,
|
||||
/* 0xBE */ ITEM_BE,
|
||||
/* 0xBF */ ITEM_BF,
|
||||
/* 0xC0 */ ITEM_C0,
|
||||
/* 0xC1 */ ITEM_C1,
|
||||
/* 0xC2 */ ITEM_C2,
|
||||
/* 0xC3 */ ITEM_C3,
|
||||
/* 0xC4 */ ITEM_C4,
|
||||
/* 0xC5 */ ITEM_C5,
|
||||
/* 0xC6 */ ITEM_C6,
|
||||
/* 0xC7 */ ITEM_C7,
|
||||
/* 0xC8 */ ITEM_C8,
|
||||
/* 0xC9 */ ITEM_C9,
|
||||
/* 0xCA */ ITEM_CA,
|
||||
/* 0xCB */ ITEM_CB,
|
||||
/* 0xCC */ ITEM_CC,
|
||||
/* 0xF0 */ ITEM_F0 = 0xF0, // PLAYER_MASK_BLAST
|
||||
/* 0xF1 */ ITEM_F1, // PLAYER_MASK_BREMEN
|
||||
/* 0xF2 */ ITEM_F2, // PLAYER_MASK_KAMARO
|
||||
|
||||
+31
-6
@@ -139,9 +139,6 @@ typedef enum MessageMode {
|
||||
/* 0x4F */ MSGMODE_OWL_SAVE_2
|
||||
} MessageMode;
|
||||
|
||||
extern u16 sBombersNotebookEventMessages[BOMBERS_NOTEBOOK_EVENT_MAX];
|
||||
extern u16 gBombersNotebookWeekEventFlags[BOMBERS_NOTEBOOK_EVENT_MAX];
|
||||
|
||||
typedef enum FaceReactionSet {
|
||||
/* 0x11 */ FACE_REACTION_SET_JIM = 0x11,
|
||||
/* 0x12 */ FACE_REACTION_SET_BOMBERS,
|
||||
@@ -177,7 +174,6 @@ typedef enum TextState {
|
||||
/* 18 */ TEXT_STATE_18
|
||||
} TextState;
|
||||
|
||||
|
||||
#define FONT_CHAR_TEX_WIDTH 16
|
||||
#define FONT_CHAR_TEX_HEIGHT 16
|
||||
//! TODO: Make this use `sizeof(AnyFontTextureSymbol)`
|
||||
@@ -203,8 +199,8 @@ typedef struct {
|
||||
u16 wchar[640]; // msgBufWide
|
||||
u64 force_structure_alignment_msg;
|
||||
} msgBuf;
|
||||
/* 0x11D80 */ u8* messageStart;
|
||||
/* 0x11D84 */ u8* messageEnd;
|
||||
/* 0x11D80 */ u32 messageStart;
|
||||
/* 0x11D84 */ u32 messageEnd;
|
||||
/* 0x11D88 */ u8 unk_11D88; // current Char Buffer ?
|
||||
} Font; // size = 0x11D90
|
||||
|
||||
@@ -324,4 +320,33 @@ typedef struct MessageContext {
|
||||
/* 0x120DA */ UNK_TYPE1 unk_120DA[0x6];
|
||||
} MessageContext; // size = 0x120E0
|
||||
|
||||
s32 Message_ShouldAdvance(struct PlayState* play);
|
||||
void Message_CloseTextbox(struct PlayState* play);
|
||||
void Message_DrawTextChar(struct PlayState* play, TexturePtr texture, Gfx** gfxP);
|
||||
void Message_DrawItemIcon(struct PlayState* play, Gfx** gfxP);
|
||||
void Message_HandleOcarina(struct PlayState* play);
|
||||
void Message_LoadItemIcon(struct PlayState* play, u16 itemId, s16 arg2);
|
||||
void Message_SetupLoadItemIcon(struct PlayState* play);
|
||||
void func_801514B0(struct PlayState* play, u16 arg1, u8 arg2);
|
||||
void Message_StartTextbox(struct PlayState* play, u16 textId, Actor* actor);
|
||||
void Message_ContinueTextbox(struct PlayState* play, u16 textId);
|
||||
void Message_DisplaySceneTitleCard(struct PlayState* play, u16 textId);
|
||||
void Message_BombersNotebookQueueEvent(struct PlayState* play, u8 event);
|
||||
void Message_DisplayOcarinaStaff(struct PlayState* play, u16 ocarinaAction);
|
||||
void Message_DisplayOcarinaStaffBlockSunsSong(struct PlayState* play, u16 ocarinaAction);
|
||||
u8 Message_GetState(MessageContext* msgCtx);
|
||||
void Message_Draw(struct PlayState* play);
|
||||
void Message_Update(struct PlayState* play);
|
||||
void Message_Init(struct PlayState* play);
|
||||
void Message_FindMessageNES(struct PlayState* play, u16 textId);
|
||||
void Message_DrawTextNES(struct PlayState* play, Gfx** gfxP, u16 textDrawPos);
|
||||
void Message_DecodeNES(struct PlayState* play);
|
||||
void Message_FindCreditsMessage(struct PlayState* play, u16 textId);
|
||||
void Message_DrawTextCredits(struct PlayState* play, Gfx** gfxP);
|
||||
void Message_DecodeCredits(struct PlayState* play);
|
||||
|
||||
extern u8 gPageSwitchNextButtonStatus[6][5];
|
||||
extern u16 gBombersNotebookWeekEventFlags[BOMBERS_NOTEBOOK_EVENT_MAX];
|
||||
extern s16 gOcarinaSongItemMap[];
|
||||
|
||||
#endif
|
||||
|
||||
+139
-4
@@ -32,10 +32,135 @@ typedef enum {
|
||||
/* 24 */ OCARINA_SONG_SCARECROW_LONG = OCARINA_SONG_MAX // anything larger than 24 is considered the long scarecrow's song
|
||||
} OcarinaSongId;
|
||||
|
||||
typedef enum OcarinaMode {
|
||||
/* 0x18 */ OCARINA_MODE_APPLY_INV_SOT_FAST = 24,
|
||||
typedef enum {
|
||||
/* 0x00 */ OCARINA_ACTION_0, // acts like free play but never set
|
||||
/* 0x01 */ OCARINA_ACTION_FREE_PLAY,
|
||||
/* 0x02 */ OCARINA_ACTION_DEMONSTRATE_SONATA, // Song demonstrated/previewed by another actor/teacher
|
||||
/* 0x03 */ OCARINA_ACTION_DEMONSTRATE_GORON_LULLABY,
|
||||
/* 0x04 */ OCARINA_ACTION_DEMONSTRATE_NEW_WAVE,
|
||||
/* 0x05 */ OCARINA_ACTION_DEMONSTRATE_ELEGY,
|
||||
/* 0x06 */ OCARINA_ACTION_DEMONSTRATE_OATH,
|
||||
/* 0x07 */ OCARINA_ACTION_DEMONSTRATE_SARIAS,
|
||||
/* 0x08 */ OCARINA_ACTION_DEMONSTRATE_TIME,
|
||||
/* 0x09 */ OCARINA_ACTION_DEMONSTRATE_HEALING,
|
||||
/* 0x0A */ OCARINA_ACTION_DEMONSTRATE_EPONAS,
|
||||
/* 0x0B */ OCARINA_ACTION_DEMONSTRATE_SOARING,
|
||||
/* 0x0C */ OCARINA_ACTION_DEMONSTRATE_STORMS,
|
||||
/* 0x0D */ OCARINA_ACTION_DEMONSTRATE_SUNS,
|
||||
/* 0x0E */ OCARINA_ACTION_DEMONSTRATE_INVERTED_TIME,
|
||||
/* 0x0F */ OCARINA_ACTION_DEMONSTRATE_DOUBLE_TIME,
|
||||
/* 0x10 */ OCARINA_ACTION_DEMONSTRATE_GORON_LULLABY_INTRO,
|
||||
/* 0x11 */ OCARINA_ACTION_11,
|
||||
/* 0x12 */ OCARINA_ACTION_PROMPT_SONATA, // User plays back song through inputing 1 note at a time, as a tutorial. Each note is verified.
|
||||
/* 0x13 */ OCARINA_ACTION_PROMPT_GORON_LULLABY,
|
||||
/* 0x14 */ OCARINA_ACTION_PROMPT_NEW_WAVE,
|
||||
/* 0x15 */ OCARINA_ACTION_PROMPT_ELEGY,
|
||||
/* 0x16 */ OCARINA_ACTION_PROMPT_OATH,
|
||||
/* 0x17 */ OCARINA_ACTION_PROMPT_SARIAS,
|
||||
/* 0x18 */ OCARINA_ACTION_PROMPT_TIME,
|
||||
/* 0x19 */ OCARINA_ACTION_PROMPT_HEALING,
|
||||
/* 0x1A */ OCARINA_ACTION_PROMPT_EPONAS,
|
||||
/* 0x1B */ OCARINA_ACTION_PROMPT_SOARING,
|
||||
/* 0x1C */ OCARINA_ACTION_PROMPT_STORMS,
|
||||
/* 0x1D */ OCARINA_ACTION_PROMPT_SUNS,
|
||||
/* 0x1E */ OCARINA_ACTION_PROMPT_INVERTED_TIME,
|
||||
/* 0x1F */ OCARINA_ACTION_PROMPT_DOUBLE_TIME,
|
||||
/* 0x20 */ OCARINA_ACTION_PROMPT_GORON_LULLABY_INTRO,
|
||||
/* 0x21 */ OCARINA_ACTION_21,
|
||||
/* 0x22 */ OCARINA_ACTION_CHECK_SONATA, // Once the entire song is played, checks for a specific song. Broken as playing any dungeon song will softlock.
|
||||
/* 0x23 */ OCARINA_ACTION_CHECK_GORON_LULLABY,
|
||||
/* 0x24 */ OCARINA_ACTION_CHECK_NEW_WAVE,
|
||||
/* 0x25 */ OCARINA_ACTION_CHECK_ELEGY,
|
||||
/* 0x26 */ OCARINA_ACTION_CHECK_OATH,
|
||||
/* 0x27 */ OCARINA_ACTION_CHECK_SARIAS,
|
||||
/* 0x28 */ OCARINA_ACTION_CHECK_TIME,
|
||||
/* 0x29 */ OCARINA_ACTION_CHECK_HEALING,
|
||||
/* 0x2A */ OCARINA_ACTION_CHECK_EPONAS,
|
||||
/* 0x2B */ OCARINA_ACTION_CHECK_SOARING,
|
||||
/* 0x2C */ OCARINA_ACTION_CHECK_STORMS,
|
||||
/* 0x2D */ OCARINA_ACTION_CHECK_SUNS,
|
||||
/* 0x2E */ OCARINA_ACTION_CHECK_INVERTED_TIME,
|
||||
/* 0x2F */ OCARINA_ACTION_CHECK_DOUBLE_TIME,
|
||||
/* 0x30 */ OCARINA_ACTION_CHECK_GORON_LULLABY_INTRO,
|
||||
/* 0x31 */ OCARINA_ACTION_CHECK_SCARECROW_SPAWN, // TODO: Verify (may include more)
|
||||
/* 0x32 */ OCARINA_ACTION_FREE_PLAY_DONE,
|
||||
/* 0x33 */ OCARINA_ACTION_SCARECROW_LONG_RECORDING,
|
||||
/* 0x34 */ OCARINA_ACTION_SCARECROW_LONG_DEMONSTRATION,
|
||||
/* 0x35 */ OCARINA_ACTION_SCARECROW_SPAWN_RECORDING,
|
||||
/* 0x36 */ OCARINA_ACTION_SCARECROW_SPAWN_DEMONSTRATION,
|
||||
/* 0x37 */ OCARINA_ACTION_37,
|
||||
/* 0x38 */ OCARINA_ACTION_CHECK_NOTIME,
|
||||
/* 0x39 */ OCARINA_ACTION_CHECK_NOTIME_DONE,
|
||||
/* 0x3A */ OCARINA_ACTION_3A, // Monkey Instrument Prompt
|
||||
/* 0x3B */ OCARINA_ACTION_3B,
|
||||
/* 0x3C */ OCARINA_ACTION_3C,
|
||||
/* 0x3D */ OCARINA_ACTION_DEMONSTRATE_EVAN_PART1_FIRST_HALF, // Evan Part 1 demonstrate first half (Japa)
|
||||
/* 0x3E */ OCARINA_ACTION_DEMONSTRATE_EVAN_PART2_FIRST_HALF, // Evan Part 2 demonstrate first half (Japa)
|
||||
/* 0x3F */ OCARINA_ACTION_DEMONSTRATE_EVAN_PART1_SECOND_HALF, // Evan Part 1 demonstrate second half (Diary)
|
||||
/* 0x40 */ OCARINA_ACTION_DEMONSTRATE_EVAN_PART2_SECOND_HALF, // Evan Part 2 demonstrate second half (Diary)
|
||||
/* 0x41 */ OCARINA_ACTION_PROMPT_EVAN_PART1_SECOND_HALF, // Evan Part 1 prompt second half (Japa)
|
||||
/* 0x42 */ OCARINA_ACTION_PROMPT_EVAN_PART2_SECOND_HALF, // Evan Part 2 prompt second half (Japa)
|
||||
/* 0x43 */ OCARINA_ACTION_PROMPT_WIND_FISH_HUMAN,
|
||||
/* 0x44 */ OCARINA_ACTION_PROMPT_WIND_FISH_GORON,
|
||||
/* 0x45 */ OCARINA_ACTION_PROMPT_WIND_FISH_ZORA,
|
||||
/* 0x46 */ OCARINA_ACTION_PROMPT_WIND_FISH_DEKU,
|
||||
/* 0x47 */ OCARINA_ACTION_TIMED_PROMPT_SONATA, // Playing back a particular song, but must also time the notes properly. Not fully implemented
|
||||
/* 0x48 */ OCARINA_ACTION_TIMED_PROMPT_GORON_LULLABY,
|
||||
/* 0x49 */ OCARINA_ACTION_TIMED_PROMPT_NEW_WAVE,
|
||||
/* 0x4A */ OCARINA_ACTION_TIMED_PROMPT_ELEGY,
|
||||
/* 0x4B */ OCARINA_ACTION_TIMED_PROMPT_OATH,
|
||||
/* 0x4C */ OCARINA_ACTION_TIMED_PROMPT_SARIAS,
|
||||
/* 0x4D */ OCARINA_ACTION_TIMED_PROMPT_TIME,
|
||||
/* 0x4E */ OCARINA_ACTION_TIMED_PROMPT_HEALING,
|
||||
/* 0x4F */ OCARINA_ACTION_TIMED_PROMPT_EPONAS,
|
||||
/* 0x50 */ OCARINA_ACTION_TIMED_PROMPT_SOARING,
|
||||
/* 0x51 */ OCARINA_ACTION_TIMED_PROMPT_STORMS
|
||||
} OcarinaSongActionId;
|
||||
|
||||
typedef enum {
|
||||
/* 0x00 */ OCARINA_MODE_NONE,
|
||||
/* 0x01 */ OCARINA_MODE_ACTIVE,
|
||||
/* 0x02 */ OCARINA_MODE_WARP,
|
||||
/* 0x03 */ OCARINA_MODE_EVENT,
|
||||
/* 0x04 */ OCARINA_MODE_END,
|
||||
/* 0x05 */ OCARINA_MODE_PLAYED_TIME, // Played Time
|
||||
/* 0x06 */ OCARINA_MODE_PLAYED_HEALING,
|
||||
/* 0x07 */ OCARINA_MODE_PLAYED_EPONAS,
|
||||
/* 0x08 */ OCARINA_MODE_PLAYED_SOARING,
|
||||
/* 0x09 */ OCARINA_MODE_PLAYED_STORMS,
|
||||
/* 0x0A */ OCARINA_MODE_PLAYED_SUNS,
|
||||
/* 0x0B */ OCARINA_MODE_PLAYED_INVERTED_TIME,
|
||||
/* 0x0C */ OCARINA_MODE_PLAYED_DOUBLE_TIME,
|
||||
/* 0x0D */ OCARINA_MODE_PLAYED_SCARECROW_SPAWN,
|
||||
/* 0x0E */ OCARINA_MODE_E,
|
||||
/* 0x0F */ OCARINA_MODE_F,
|
||||
/* 0x10 */ OCARINA_MODE_10,
|
||||
/* 0x11 */ OCARINA_MODE_11, // End memory/scarecrow from OoT
|
||||
/* 0x12 */ OCARINA_MODE_PROCESS_SOT, // Song of Time related
|
||||
/* 0x13 */ OCARINA_MODE_PROCESS_INVERTED_TIME, // Inverted Song of Time related
|
||||
/* 0x14 */ OCARINA_MODE_14,
|
||||
/* 0x15 */ OCARINA_MODE_PROCESS_DOUBLE_TIME, // Song of Double Time related
|
||||
/* 0x16 */ OCARINA_MODE_APPLY_SOT, // Apply
|
||||
/* 0x17 */ OCARINA_MODE_17,
|
||||
/* 0x18 */ OCARINA_MODE_APPLY_INV_SOT_FAST,
|
||||
/* 0x19 */ OCARINA_MODE_APPLY_INV_SOT_SLOW,
|
||||
/* 0x1A */ OCARINA_MODE_APPLY_DOUBLE_SOT
|
||||
/* 0x1A */ OCARINA_MODE_APPLY_DOUBLE_SOT,
|
||||
/* 0x1B */ OCARINA_MODE_1B,
|
||||
/* 0x1C */ OCARINA_MODE_WARP_TO_GREAT_BAY_COAST,
|
||||
/* 0x1D */ OCARINA_MODE_WARP_TO_ZORA_CAPE,
|
||||
/* 0x1E */ OCARINA_MODE_WARP_TO_SNOWHEAD,
|
||||
/* 0x1F */ OCARINA_MODE_WARP_TO_MOUNTAIN_VILLAGE,
|
||||
/* 0x20 */ OCARINA_MODE_WARP_TO_SOUTH_CLOCK_TOWN,
|
||||
/* 0x21 */ OCARINA_MODE_WARP_TO_MILK_ROAD,
|
||||
/* 0x22 */ OCARINA_MODE_WARP_TO_WOODFALL,
|
||||
/* 0x23 */ OCARINA_MODE_WARP_TO_SOUTHERN_SWAMP,
|
||||
/* 0x24 */ OCARINA_MODE_WARP_TO_IKANA_CANYON,
|
||||
/* 0x25 */ OCARINA_MODE_WARP_TO_STONE_TOWER,
|
||||
/* 0x26 */ OCARINA_MODE_WARP_TO_ENTRANCE,
|
||||
/* 0x27 */ OCARINA_MODE_PROCESS_RESTRICTED_SONG, // Variants of Song of Time, Soaring, or Elegy restricted
|
||||
/* 0x28 */ OCARINA_MODE_28,
|
||||
/* 0x29 */ OCARINA_MODE_29,
|
||||
/* 0x2A */ OCARINA_MODE_PLAYED_FULL_EVAN_SONG
|
||||
} OcarinaMode;
|
||||
|
||||
typedef enum {
|
||||
@@ -78,7 +203,7 @@ typedef enum {
|
||||
/* 3 */ OCARINA_INSTRUMENT_WHISTLING_FLUTE,
|
||||
/* 4 */ OCARINA_INSTRUMENT_HARP,
|
||||
/* 5 */ OCARINA_INSTRUMENT_IKANA_KING,
|
||||
/* 6 */ OCARINA_INSTRUMENT_TATL,
|
||||
/* 6 */ OCARINA_INSTRUMENT_TATL, // Sounds like bells
|
||||
/* 7 */ OCARINA_INSTRUMENT_GORON_DRUMS,
|
||||
/* 8 */ OCARINA_INSTRUMENT_ZORA_GUITAR,
|
||||
/* 9 */ OCARINA_INSTRUMENT_DEKU_PIPES,
|
||||
@@ -98,6 +223,16 @@ typedef enum {
|
||||
/* -1 */ OCARINA_RECORD_REJECTED = 0xFF
|
||||
} OcarinaRecordingState;
|
||||
|
||||
typedef enum {
|
||||
/* 0 */ OCARINA_ERROR_NONE,
|
||||
/* 1 */ OCARINA_ERROR_1,
|
||||
/* 2 */ OCARINA_ERROR_2,
|
||||
/* 3 */ OCARINA_ERROR_3,
|
||||
/* 4 */ OCARINA_ERROR_BEND,
|
||||
/* 5 */ OCARINA_ERROR_5,
|
||||
/* 0xFF */ OCARINA_ERROR_INACTIVE = 0xFF // Song not available
|
||||
} OcarinaError;
|
||||
|
||||
/**
|
||||
* bFlat4Flag Note:
|
||||
* Flag for resolving whether (pitch = OCARINA_PITCH_BFLAT4)
|
||||
|
||||
+5
-5
@@ -115,7 +115,7 @@ typedef enum {
|
||||
/* 16 */ TIMER_STATE_POSTMAN_END
|
||||
} TimerState;
|
||||
|
||||
typedef enum {
|
||||
typedef enum BottleTimerState {
|
||||
/* 0 */ BOTTLE_TIMER_STATE_OFF,
|
||||
/* 1 */ BOTTLE_TIMER_STATE_COUNTING
|
||||
} BottleTimerState;
|
||||
@@ -126,7 +126,7 @@ typedef enum {
|
||||
/* 3 */ MINIGAME_STATUS_END = 3
|
||||
} MinigameStatus;
|
||||
|
||||
typedef enum {
|
||||
typedef enum HudVisibility {
|
||||
/* 0 */ HUD_VISIBILITY_IDLE,
|
||||
/* 1 */ HUD_VISIBILITY_NONE,
|
||||
/* 2 */ HUD_VISIBILITY_NONE_ALT, // Identical to HUD_VISIBILITY_NONE
|
||||
@@ -304,7 +304,7 @@ typedef struct SaveInfo {
|
||||
/* 0xF38 */ u32 regionsVisited; // "area_arrival"
|
||||
/* 0xF3C */ u32 worldMapCloudVisibility; // "cloud_clear"
|
||||
/* 0xF40 */ u8 unk_F40; // "oca_rec_flag" has scarecrows song
|
||||
/* 0xF41 */ u8 unk_F41; // "oca_rec_flag8" scarecrows song set?
|
||||
/* 0xF41 */ u8 scarecrowSpawnSongSet; // "oca_rec_flag8"
|
||||
/* 0xF42 */ u8 scarecrowSpawnSong[128];
|
||||
/* 0xFC2 */ s8 bombersCaughtNum; // "aikotoba_index"
|
||||
/* 0xFC3 */ s8 bombersCaughtOrder[5]; // "aikotoba_table"
|
||||
@@ -453,8 +453,8 @@ typedef enum {
|
||||
|
||||
// The day begins at CLOCK_TIME(6, 0) so it must be offset.
|
||||
#define TIME_UNTIL_MOON_CRASH \
|
||||
((4 - CURRENT_DAY) * DAY_LENGTH - (u16)(((void)0, gSaveContext.save.time) - CLOCK_TIME(6, 0)));
|
||||
#define TIME_UNTIL_NEW_DAY (DAY_LENGTH - (u16)(((void)0, gSaveContext.save.time) - CLOCK_TIME(6, 0)));
|
||||
((4 - CURRENT_DAY) * DAY_LENGTH - (u16)(((void)0, gSaveContext.save.time) - CLOCK_TIME(6, 0)))
|
||||
#define TIME_UNTIL_NEW_DAY (DAY_LENGTH - (u16)(((void)0, gSaveContext.save.time) - CLOCK_TIME(6, 0)))
|
||||
|
||||
#define GET_PLAYER_FORM ((void)0, gSaveContext.save.playerForm)
|
||||
|
||||
|
||||
@@ -528,8 +528,6 @@ beginseg
|
||||
include "build/src/code/z_vr_box_draw.o"
|
||||
include "build/src/code/z_sram_NES.o"
|
||||
include "build/src/code/z_message.o"
|
||||
include "build/data/code/z_message.data.o"
|
||||
include "build/data/code/z_message.bss.o"
|
||||
include "build/src/code/z_message_nes.o"
|
||||
include "build/src/code/z_message_staff.o"
|
||||
include "build/src/code/z_player_call.o"
|
||||
|
||||
@@ -18,7 +18,7 @@ void SaveContext_Init(void) {
|
||||
gSaveContext.nextTransitionType = TRANS_NEXT_TYPE_DEFAULT;
|
||||
gSaveContext.prevHudVisibility = HUD_VISIBILITY_ALL;
|
||||
|
||||
gSaveContext.options.language = 1;
|
||||
gSaveContext.options.language = LANGUAGE_ENG;
|
||||
gSaveContext.options.audioSetting = SAVE_AUDIO_STEREO;
|
||||
gSaveContext.options.zTargetSetting = 0;
|
||||
}
|
||||
|
||||
+4
-4
@@ -197,7 +197,7 @@ void CutsceneCmd_Misc(PlayState* play, CutsceneContext* csCtx, CsCmdMisc* cmd) {
|
||||
if (isFirstFrame) {
|
||||
loadedScene = play->loadedScene;
|
||||
if (loadedScene->titleTextId != 0) {
|
||||
func_80151A68(play, loadedScene->titleTextId);
|
||||
Message_DisplaySceneTitleCard(play, loadedScene->titleTextId);
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -1043,7 +1043,7 @@ void CutsceneCmd_Text(PlayState* play, CutsceneContext* csCtx, CsCmdText* cmd) {
|
||||
if (sCurOcarinaAction != cmd->textId) {
|
||||
sCutsceneTextboxType = CS_TEXT_OCARINA_ACTION;
|
||||
sCurOcarinaAction = cmd->textId;
|
||||
func_80152434(play, cmd->textId);
|
||||
Message_DisplayOcarinaStaff(play, cmd->textId);
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -1098,7 +1098,7 @@ void CutsceneCmd_Text(PlayState* play, CutsceneContext* csCtx, CsCmdText* cmd) {
|
||||
}
|
||||
|
||||
if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
func_80152434(play, cmd->textId);
|
||||
Message_DisplayOcarinaStaff(play, cmd->textId);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1565,7 +1565,7 @@ void Cutscene_HandleEntranceTriggers(PlayState* play) {
|
||||
if ((Entrance_GetTransitionFlags(((void)0, gSaveContext.save.entrance) +
|
||||
((void)0, gSaveContext.sceneLayer)) &
|
||||
0x4000) != 0) {
|
||||
func_80151A68(play, scene->titleTextId);
|
||||
Message_DisplaySceneTitleCard(play, scene->titleTextId);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ void KaleidoSetup_Update(PlayState* play) {
|
||||
(play->gameOverCtx.state == GAMEOVER_INACTIVE)) {
|
||||
if ((play->transitionTrigger == TRANS_TRIGGER_OFF) && (play->transitionMode == TRANS_MODE_OFF)) {
|
||||
if ((gSaveContext.save.cutsceneIndex < 0xFFF0) && (gSaveContext.nextCutsceneIndex < 0xFFF0)) {
|
||||
if (!Play_InCsMode(play) || ((msgCtx->msgMode != 0) && (msgCtx->currentTextId == 0xFF))) {
|
||||
if (!Play_InCsMode(play) || ((msgCtx->msgMode != MSGMODE_NONE) && (msgCtx->currentTextId == 0xFF))) {
|
||||
if ((play->unk_1887C < 2) && (gSaveContext.magicState != MAGIC_STATE_STEP_CAPACITY) &&
|
||||
(gSaveContext.magicState != MAGIC_STATE_FILL)) {
|
||||
if (!CHECK_EVENTINF(EVENTINF_17) && !(player->stateFlags1 & PLAYER_STATE1_20)) {
|
||||
|
||||
+5598
-166
File diff suppressed because it is too large
Load Diff
@@ -2,7 +2,6 @@
|
||||
#include "message_data_static.h"
|
||||
#include "overlays/kaleido_scope/ovl_kaleido_scope/z_kaleido_scope.h"
|
||||
|
||||
// fontWidth
|
||||
f32 sNESFontWidths[160] = {
|
||||
8.0f, 8.0f, 6.0f, 9.0f, 9.0f, 14.0f, 12.0f, 3.0f, 7.0f, 7.0f, 7.0f, 9.0f, 4.0f, 6.0f, 4.0f, 9.0f,
|
||||
10.0f, 5.0f, 9.0f, 9.0f, 10.0f, 9.0f, 9.0f, 9.0f, 9.0f, 9.0f, 6.0f, 6.0f, 9.0f, 11.0f, 9.0f, 11.0f,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
+29
-28
@@ -1709,7 +1709,7 @@ void Interface_UpdateButtonsPart2(PlayState* play) {
|
||||
if (CHECK_EVENTINF(EVENTINF_41)) {
|
||||
// Related to swamp boat (non-minigame)?
|
||||
for (i = EQUIP_SLOT_C_LEFT; i <= EQUIP_SLOT_C_RIGHT; i++) {
|
||||
if ((GET_CUR_FORM_BTN_ITEM(i) != ITEM_PICTOGRAPH_BOX) || (msgCtx->msgMode != 0)) {
|
||||
if ((GET_CUR_FORM_BTN_ITEM(i) != ITEM_PICTOGRAPH_BOX) || (msgCtx->msgMode != MSGMODE_NONE)) {
|
||||
if (gSaveContext.buttonStatus[i] == BTN_ENABLED) {
|
||||
restoreHudVisibility = true;
|
||||
}
|
||||
@@ -3657,7 +3657,7 @@ void Magic_Update(PlayState* play) {
|
||||
case MAGIC_STATE_CONSUME_LENS:
|
||||
// Slowly consume magic while Lens of Truth is active
|
||||
if ((play->pauseCtx.state == PAUSE_STATE_OFF) && (play->pauseCtx.debugEditor == DEBUG_EDITOR_NONE) &&
|
||||
(msgCtx->msgMode == 0) && (play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||
(msgCtx->msgMode == MSGMODE_NONE) && (play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||
(play->transitionTrigger == TRANS_TRIGGER_OFF) && (play->transitionMode == TRANS_MODE_OFF) &&
|
||||
!Play_InCsMode(play)) {
|
||||
|
||||
@@ -3700,7 +3700,7 @@ void Magic_Update(PlayState* play) {
|
||||
// fallthrough
|
||||
case MAGIC_STATE_CONSUME_GORON_ZORA:
|
||||
if ((play->pauseCtx.state == PAUSE_STATE_OFF) && (play->pauseCtx.debugEditor == 0) &&
|
||||
(msgCtx->msgMode == 0) && (play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||
(msgCtx->msgMode == MSGMODE_NONE) && (play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||
(play->transitionTrigger == TRANS_TRIGGER_OFF) && (play->transitionMode == TRANS_MODE_OFF)) {
|
||||
if (!Play_InCsMode(play)) {
|
||||
interfaceCtx->magicConsumptionTimer--;
|
||||
@@ -3722,7 +3722,7 @@ void Magic_Update(PlayState* play) {
|
||||
|
||||
case MAGIC_STATE_CONSUME_GIANTS_MASK:
|
||||
if ((play->pauseCtx.state == PAUSE_STATE_OFF) && (play->pauseCtx.debugEditor == DEBUG_EDITOR_NONE) &&
|
||||
(msgCtx->msgMode == 0) && (play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||
(msgCtx->msgMode == MSGMODE_NONE) && (play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||
(play->transitionTrigger == TRANS_TRIGGER_OFF) && (play->transitionMode == TRANS_MODE_OFF)) {
|
||||
if (!Play_InCsMode(play)) {
|
||||
interfaceCtx->magicConsumptionTimer--;
|
||||
@@ -3932,7 +3932,7 @@ void Interface_DrawItemButtons(PlayState* play) {
|
||||
if ((gSaveContext.hudVisibility == HUD_VISIBILITY_NONE) ||
|
||||
(gSaveContext.hudVisibility == HUD_VISIBILITY_NONE_ALT) ||
|
||||
(gSaveContext.hudVisibility == HUD_VISIBILITY_A_HEARTS_MAGIC_WITH_OVERWRITE) ||
|
||||
(msgCtx->msgMode != 0)) {
|
||||
(msgCtx->msgMode != MSGMODE_NONE)) {
|
||||
temp = 0;
|
||||
} else if (player->stateFlags1 & PLAYER_STATE1_200000) {
|
||||
temp = 70;
|
||||
@@ -4400,8 +4400,8 @@ void Interface_DrawClock(PlayState* play) {
|
||||
OPEN_DISPS(play->state.gfxCtx);
|
||||
|
||||
if ((R_TIME_SPEED != 0) &&
|
||||
((msgCtx->msgMode == 0) || ((play->actorCtx.flags & ACTORCTX_FLAG_1) && !Play_InCsMode(play)) ||
|
||||
(msgCtx->msgMode == 0) || ((msgCtx->currentTextId >= 0x100) && (msgCtx->currentTextId <= 0x200)) ||
|
||||
((msgCtx->msgMode == MSGMODE_NONE) || ((play->actorCtx.flags & ACTORCTX_FLAG_1) && !Play_InCsMode(play)) ||
|
||||
(msgCtx->msgMode == MSGMODE_NONE) || ((msgCtx->currentTextId >= 0x100) && (msgCtx->currentTextId <= 0x200)) ||
|
||||
(gSaveContext.gameMode == GAMEMODE_END_CREDITS)) &&
|
||||
!FrameAdvance_IsEnabled(&play->state) && !Environment_IsTimeStopped() && (gSaveContext.save.day <= 3)) {
|
||||
/**
|
||||
@@ -5440,31 +5440,31 @@ void Interface_StartMoonCrash(PlayState* play) {
|
||||
play->transitionType = TRANS_TYPE_FADE_WHITE;
|
||||
}
|
||||
|
||||
void Interface_GetTimerDigits(u64 timer, s16* timerArr) {
|
||||
u64 time = timer;
|
||||
void Interface_GetTimerDigits(OSTime time, s16* timerArr) {
|
||||
OSTime t = time;
|
||||
|
||||
// 6 minutes
|
||||
timerArr[0] = time / SECONDS_TO_TIMER(360);
|
||||
time -= timerArr[0] * SECONDS_TO_TIMER(360);
|
||||
timerArr[0] = t / SECONDS_TO_TIMER(360);
|
||||
t -= timerArr[0] * SECONDS_TO_TIMER(360);
|
||||
|
||||
// minutes
|
||||
timerArr[1] = time / SECONDS_TO_TIMER(60);
|
||||
time -= timerArr[1] * SECONDS_TO_TIMER(60);
|
||||
timerArr[1] = t / SECONDS_TO_TIMER(60);
|
||||
t -= timerArr[1] * SECONDS_TO_TIMER(60);
|
||||
|
||||
// 10 seconds
|
||||
timerArr[3] = time / SECONDS_TO_TIMER(10);
|
||||
time -= timerArr[3] * SECONDS_TO_TIMER(10);
|
||||
timerArr[3] = t / SECONDS_TO_TIMER(10);
|
||||
t -= timerArr[3] * SECONDS_TO_TIMER(10);
|
||||
|
||||
// seconds
|
||||
timerArr[4] = time / SECONDS_TO_TIMER(1);
|
||||
time -= timerArr[4] * SECONDS_TO_TIMER(1);
|
||||
timerArr[4] = t / SECONDS_TO_TIMER(1);
|
||||
t -= timerArr[4] * SECONDS_TO_TIMER(1);
|
||||
|
||||
// 100 milliseconds
|
||||
timerArr[6] = time / SECONDS_TO_TIMER_PRECISE(0, 10);
|
||||
time -= timerArr[6] * SECONDS_TO_TIMER_PRECISE(0, 10);
|
||||
timerArr[6] = t / SECONDS_TO_TIMER_PRECISE(0, 10);
|
||||
t -= timerArr[6] * SECONDS_TO_TIMER_PRECISE(0, 10);
|
||||
|
||||
// 10 milliseconds
|
||||
timerArr[7] = time;
|
||||
timerArr[7] = t;
|
||||
}
|
||||
|
||||
#define IS_POSTMAN_TIMER_DRAWN \
|
||||
@@ -5500,8 +5500,8 @@ void Interface_DrawTimers(PlayState* play) {
|
||||
// Not satisfying any of these conditions will pause the timer
|
||||
if ((play->pauseCtx.state == PAUSE_STATE_OFF) && (play->pauseCtx.debugEditor == DEBUG_EDITOR_NONE) &&
|
||||
(play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||
((msgCtx->msgMode == 0) ||
|
||||
((msgCtx->msgMode != 0) && (msgCtx->currentTextId >= 0x1BB2) && (msgCtx->currentTextId <= 0x1BB6))) &&
|
||||
((msgCtx->msgMode == MSGMODE_NONE) || ((msgCtx->msgMode != MSGMODE_NONE) && (msgCtx->currentTextId >= 0x1BB2) &&
|
||||
(msgCtx->currentTextId <= 0x1BB6))) &&
|
||||
!(player->stateFlags1 & PLAYER_STATE1_200) && (play->transitionTrigger == TRANS_TRIGGER_OFF) &&
|
||||
(play->transitionMode == TRANS_MODE_OFF) && !Play_InCsMode(play)) {
|
||||
|
||||
@@ -5950,7 +5950,7 @@ void Interface_UpdateBottleTimers(PlayState* play) {
|
||||
// Not satisfying any of these conditions will pause the bottle timer
|
||||
if ((play->pauseCtx.state == PAUSE_STATE_OFF) && (play->pauseCtx.debugEditor == DEBUG_EDITOR_NONE) &&
|
||||
(play->gameOverCtx.state == GAMEOVER_INACTIVE) &&
|
||||
((msgCtx->msgMode == 0) || ((msgCtx->currentTextId >= 0x100) && (msgCtx->currentTextId <= 0x200)) ||
|
||||
((msgCtx->msgMode == MSGMODE_NONE) || ((msgCtx->currentTextId >= 0x100) && (msgCtx->currentTextId <= 0x200)) ||
|
||||
((msgCtx->currentTextId >= 0x1BB2) && (msgCtx->currentTextId <= 0x1BB6))) &&
|
||||
(play->transitionTrigger == TRANS_TRIGGER_OFF) && (play->transitionMode == TRANS_MODE_OFF) &&
|
||||
!Play_InCsMode(play)) {
|
||||
@@ -6870,7 +6870,7 @@ void Interface_Update(PlayState* play) {
|
||||
interfaceCtx->aButtonRoll = -15700.0f;
|
||||
interfaceCtx->aButtonState = A_BTN_STATE_2;
|
||||
|
||||
if ((msgCtx->msgMode != 0) && (msgCtx->textboxYTarget == 0x26)) {
|
||||
if ((msgCtx->msgMode != MSGMODE_NONE) && (msgCtx->textboxYTarget == 38)) {
|
||||
R_A_BTN_Y_OFFSET = -14;
|
||||
} else {
|
||||
R_A_BTN_Y_OFFSET = 0;
|
||||
@@ -7018,8 +7018,9 @@ void Interface_Update(PlayState* play) {
|
||||
// Update Sun Song
|
||||
if (gSaveContext.sunsSongState != SUNSSONG_INACTIVE) {
|
||||
// exit out of ocarina mode after suns song finishes playing
|
||||
if ((msgCtx->ocarinaAction != 0x39) && (gSaveContext.sunsSongState == SUNSSONG_START)) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
if ((msgCtx->ocarinaAction != OCARINA_ACTION_CHECK_NOTIME_DONE) &&
|
||||
(gSaveContext.sunsSongState == SUNSSONG_START)) {
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
|
||||
// handle suns song in areas where time moves
|
||||
@@ -7039,7 +7040,7 @@ void Interface_Update(PlayState* play) {
|
||||
// Daytime has been reached. End suns song effect
|
||||
gSaveContext.sunsSongState = SUNSSONG_INACTIVE;
|
||||
R_TIME_SPEED = sPrevTimeSpeed;
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
} else {
|
||||
// Daytime
|
||||
@@ -7047,7 +7048,7 @@ void Interface_Update(PlayState* play) {
|
||||
// Nighttime has been reached. End suns song effect
|
||||
gSaveContext.sunsSongState = SUNSSONG_INACTIVE;
|
||||
R_TIME_SPEED = sPrevTimeSpeed;
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -1072,7 +1072,7 @@ void Play_Update(PlayState* this) {
|
||||
this->pauseCtx.bombersNotebookOpen = false;
|
||||
sBombersNotebook.loadState = BOMBERS_NOTEBOOK_LOAD_STATE_NONE;
|
||||
this->msgCtx.msgLength = 0;
|
||||
this->msgCtx.msgMode = 0;
|
||||
this->msgCtx.msgMode = MSGMODE_NONE;
|
||||
this->msgCtx.currentTextId = 0;
|
||||
this->msgCtx.stateTimer = 0;
|
||||
Audio_PlaySfx(NA_SE_SY_CANCEL);
|
||||
|
||||
@@ -638,7 +638,7 @@ void Sram_SaveEndOfCycle(PlayState* play) {
|
||||
}
|
||||
|
||||
gSaveContext.save.saveInfo.playerData.rupees = 0;
|
||||
gSaveContext.save.saveInfo.unk_F41 = 0;
|
||||
gSaveContext.save.saveInfo.scarecrowSpawnSongSet = false;
|
||||
gSaveContext.powderKegTimer = 0;
|
||||
gSaveContext.unk_1014 = 0;
|
||||
gSaveContext.jinxTimer = 0;
|
||||
@@ -1304,7 +1304,7 @@ void Sram_OpenSave(FileSelectState* fileSelect, SramContext* sramCtx) {
|
||||
gSaveContext.cycleSceneFlags[i].collectible = gSaveContext.save.saveInfo.permanentSceneFlags[i].collectible;
|
||||
}
|
||||
|
||||
if (gSaveContext.save.saveInfo.unk_F41) {
|
||||
if (gSaveContext.save.saveInfo.scarecrowSpawnSongSet) {
|
||||
Lib_MemCpy(gScarecrowSpawnSongPtr, gSaveContext.save.saveInfo.scarecrowSpawnSong,
|
||||
sizeof(gSaveContext.save.saveInfo.scarecrowSpawnSong));
|
||||
|
||||
@@ -1649,7 +1649,7 @@ void func_801457CC(GameState* gameState, SramContext* sramCtx) {
|
||||
} else {
|
||||
if (phi_s2) {
|
||||
gSaveContext.options.optionId = 0xA51D;
|
||||
gSaveContext.options.language = 1;
|
||||
gSaveContext.options.language = LANGUAGE_ENG;
|
||||
gSaveContext.options.audioSetting = SAVE_AUDIO_STEREO;
|
||||
gSaveContext.options.languageSetting = 0;
|
||||
gSaveContext.options.zTargetSetting = 0;
|
||||
@@ -1657,7 +1657,7 @@ void func_801457CC(GameState* gameState, SramContext* sramCtx) {
|
||||
Lib_MemCpy(&gSaveContext.options, sramCtx->saveBuf, sizeof(SaveOptions));
|
||||
if (gSaveContext.options.optionId != 0xA51D) {
|
||||
gSaveContext.options.optionId = 0xA51D;
|
||||
gSaveContext.options.language = 1;
|
||||
gSaveContext.options.language = LANGUAGE_ENG;
|
||||
gSaveContext.options.audioSetting = SAVE_AUDIO_STEREO;
|
||||
gSaveContext.options.languageSetting = 0;
|
||||
gSaveContext.options.zTargetSetting = 0;
|
||||
@@ -1671,7 +1671,7 @@ void func_801457CC(GameState* gameState, SramContext* sramCtx) {
|
||||
gSaveContext.flashSaveAvailable = D_801F6AF2;
|
||||
}
|
||||
|
||||
gSaveContext.options.language = 1;
|
||||
gSaveContext.options.language = LANGUAGE_ENG;
|
||||
}
|
||||
#else
|
||||
#pragma GLOBAL_ASM("asm/non_matchings/code/z_sram_NES/func_801457CC.s")
|
||||
@@ -1853,8 +1853,7 @@ void Sram_InitSave(FileSelectState* fileSelect2, SramContext* sramCtx) {
|
||||
*/
|
||||
void Sram_WriteSaveOptionsToBuffer(SramContext* sramCtx) {
|
||||
if (gSaveContext.flashSaveAvailable) {
|
||||
// TODO: macros for languages
|
||||
gSaveContext.options.language = 1;
|
||||
gSaveContext.options.language = LANGUAGE_ENG;
|
||||
Lib_MemCpy(sramCtx->saveBuf, &gSaveContext.options, sizeof(SaveOptions));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -204,7 +204,7 @@ void FireArrow_Fly(ArrowFire* this, PlayState* play) {
|
||||
void ArrowFire_Update(Actor* thisx, PlayState* play) {
|
||||
ArrowFire* this = (ArrowFire*)thisx;
|
||||
|
||||
if ((play->msgCtx.msgMode == 0xE) || (play->msgCtx.msgMode == 0x12)) {
|
||||
if ((play->msgCtx.msgMode == MSGMODE_E) || (play->msgCtx.msgMode == MSGMODE_SONG_PLAYED)) {
|
||||
Actor_Kill(&this->actor);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ void ArrowIce_Fly(ArrowIce* this, PlayState* play) {
|
||||
void ArrowIce_Update(Actor* thisx, PlayState* play) {
|
||||
ArrowIce* this = THIS;
|
||||
|
||||
if ((play->msgCtx.msgMode == 0xE) || (play->msgCtx.msgMode == 0x12)) {
|
||||
if ((play->msgCtx.msgMode == MSGMODE_E) || (play->msgCtx.msgMode == MSGMODE_SONG_PLAYED)) {
|
||||
Actor_Kill(&this->actor);
|
||||
return;
|
||||
} else {
|
||||
|
||||
@@ -172,7 +172,7 @@ void ArrowLight_Fly(ArrowLight* this, PlayState* play) {
|
||||
void ArrowLight_Update(Actor* thisx, PlayState* play) {
|
||||
ArrowLight* this = THIS;
|
||||
|
||||
if ((play->msgCtx.msgMode == 0xE) || (play->msgCtx.msgMode == 0x12)) {
|
||||
if ((play->msgCtx.msgMode == MSGMODE_E) || (play->msgCtx.msgMode == MSGMODE_SONG_PLAYED)) {
|
||||
Actor_Kill(&this->actor);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ void func_80AA8698(DmChar01* this, PlayState* play) {
|
||||
D_80AAAAB4 = false;
|
||||
}
|
||||
|
||||
if ((player->transformation == PLAYER_FORM_DEKU) && (play->msgCtx.ocarinaMode == 3) &&
|
||||
if ((player->transformation == PLAYER_FORM_DEKU) && (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_SONATA)) {
|
||||
|
||||
if ((player2->actor.world.pos.x > -40.0f) && (player2->actor.world.pos.x < 40.0f) &&
|
||||
|
||||
@@ -266,7 +266,7 @@ void DmChar08_WaitForSong(DmChar08* this, PlayState* play) {
|
||||
} else {
|
||||
sSuccessSoundAlreadyPlayed = false;
|
||||
}
|
||||
if ((player->transformation == PLAYER_FORM_ZORA) && (play->msgCtx.ocarinaMode == 3) &&
|
||||
if ((player->transformation == PLAYER_FORM_ZORA) && (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_NEW_WAVE)) {
|
||||
if ((player2->actor.world.pos.x > -5780.0f) && (player2->actor.world.pos.x < -5385.0f)) {
|
||||
if ((player2->actor.world.pos.z > 1120.0f) && (player2->actor.world.pos.z < 2100.0f)) {
|
||||
|
||||
@@ -1867,7 +1867,7 @@ void DmStk_Update(Actor* thisx, PlayState* play) {
|
||||
|
||||
// This code is responsible for making in-game time pass while using the telescope in the Astral Observatory.
|
||||
// Skull Kid is always loaded in the scene, even if he isn't visible, hence why time always passes.
|
||||
if ((play->actorCtx.flags & ACTORCTX_FLAG_1) && (play->msgCtx.msgMode != 0) &&
|
||||
if ((play->actorCtx.flags & ACTORCTX_FLAG_1) && (play->msgCtx.msgMode != MSGMODE_NONE) &&
|
||||
(play->msgCtx.currentTextId == 0x5E6) && !FrameAdvance_IsEnabled(&play->state) &&
|
||||
(play->transitionTrigger == TRANS_TRIGGER_OFF) && (CutsceneManager_GetCurrentCsId() == CS_ID_NONE) &&
|
||||
(play->csCtx.state == CS_STATE_IDLE)) {
|
||||
|
||||
@@ -457,7 +457,7 @@ void func_80BED3BC(EnAkindonuts* this, PlayState* play) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
this->unk_32C &= ~0x1;
|
||||
this->unk_32C |= 0x40;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0x15EF;
|
||||
this->actionFunc = func_80BEF360;
|
||||
@@ -546,7 +546,7 @@ void func_80BED680(EnAkindonuts* this, PlayState* play) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
this->unk_32C |= 0x40;
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0x15EF;
|
||||
this->actionFunc = func_80BEF360;
|
||||
@@ -650,7 +650,7 @@ void func_80BED8A4(EnAkindonuts* this, PlayState* play) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
this->unk_32C |= 0x40;
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0x15EF;
|
||||
this->actionFunc = func_80BEF360;
|
||||
@@ -739,7 +739,7 @@ void func_80BEDB88(EnAkindonuts* this, PlayState* play) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
this->unk_32C |= 0x40;
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0x15EF;
|
||||
this->actionFunc = func_80BEF360;
|
||||
@@ -838,7 +838,7 @@ void func_80BEDDAC(EnAkindonuts* this, PlayState* play) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
this->unk_32C |= 0x40;
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0x15EF;
|
||||
this->actionFunc = func_80BEF360;
|
||||
@@ -922,7 +922,7 @@ void func_80BEE070(EnAkindonuts* this, PlayState* play) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
this->unk_32C |= 0x40;
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0x161A;
|
||||
this->actionFunc = func_80BEF360;
|
||||
@@ -1011,7 +1011,7 @@ void func_80BEE274(EnAkindonuts* this, PlayState* play) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
this->unk_32C |= 0x40;
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0x1629;
|
||||
this->actionFunc = func_80BEF360;
|
||||
@@ -1095,7 +1095,7 @@ void func_80BEE530(EnAkindonuts* this, PlayState* play) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
this->unk_32C |= 0x40;
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0x15EF;
|
||||
this->actionFunc = func_80BEF360;
|
||||
@@ -1335,7 +1335,7 @@ void func_80BEEFA8(EnAkindonuts* this, PlayState* play) {
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
if (this->unk_32C & 1) {
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0;
|
||||
this->actionFunc = func_80BEEE10;
|
||||
@@ -1343,7 +1343,7 @@ void func_80BEEFA8(EnAkindonuts* this, PlayState* play) {
|
||||
this->unk_32C &= ~0x20;
|
||||
this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
|
||||
this->unk_32C &= ~0x4;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->animIndex = ENAKINDONUTS_ANIM_8;
|
||||
this->unk_33C = 0;
|
||||
@@ -1378,7 +1378,7 @@ void func_80BEEFA8(EnAkindonuts* this, PlayState* play) {
|
||||
|
||||
void func_80BEF18C(EnAkindonuts* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_33C = 0;
|
||||
this->actionFunc = func_80BEEE10;
|
||||
@@ -1405,7 +1405,7 @@ void func_80BEF20C(EnAkindonuts* this, PlayState* play) {
|
||||
if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
if (this->unk_32C & 1) {
|
||||
this->unk_32C &= ~0x1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = func_80BEF360;
|
||||
} else {
|
||||
|
||||
@@ -449,7 +449,7 @@ void EnAob01_BeforeRace_HandleConversation(EnAob01* this, PlayState* play) {
|
||||
this->stateFlags &= ~ENAOB01_FLAG_PLAYER_CONFIRMED_CHOICE;
|
||||
Rupees_ChangeBy(-this->rupeesBet);
|
||||
func_800B7298(play, NULL, PLAYER_CSMODE_WAIT);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnAob01_BeforeRace_StartRace;
|
||||
return;
|
||||
@@ -518,7 +518,7 @@ void EnAob01_BeforeRace_RespondToPlayAgainQuestion(EnAob01* this, PlayState* pla
|
||||
}
|
||||
}
|
||||
} else if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->textId = 0;
|
||||
this->actionFunc = EnAob01_BeforeRace_Idle;
|
||||
@@ -672,7 +672,7 @@ void EnAob01_BeforeRace_Talk(EnAob01* this, PlayState* play) {
|
||||
this->stateFlags &= ~ENAOB01_FLAG_LAUGH;
|
||||
if (this->stateFlags & ENAOB01_FLAG_CONVERSATION_OVER) {
|
||||
this->stateFlags &= ~ENAOB01_FLAG_CONVERSATION_OVER;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnAob01_BeforeRace_Idle;
|
||||
} else {
|
||||
@@ -898,7 +898,7 @@ void EnAob01_AfterRace_GiveReward(EnAob01* this, PlayState* play) {
|
||||
if (EnAob01_ProcessIdleAnim(this)) {
|
||||
if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
this->rupeesBet = 0;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
}
|
||||
|
||||
|
||||
@@ -707,7 +707,7 @@ s32 func_80A9617C(EnAz* this, PlayState* play) {
|
||||
if (SubS_StartCutscene(&brother->actor, brother->csIdList[0], CS_ID_GLOBAL_TALK,
|
||||
SUBS_CUTSCENE_NORMAL)) {
|
||||
brother->unk_374 |= 0x8000;
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
ret = 0;
|
||||
}
|
||||
} else if (Message_ShouldAdvance(play)) {
|
||||
@@ -832,7 +832,7 @@ s32 func_80A9617C(EnAz* this, PlayState* play) {
|
||||
case 0x10DB:
|
||||
if (play->msgCtx.choiceIndex == 0) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
this->unk_2FA = 1;
|
||||
ret = 0;
|
||||
} else {
|
||||
@@ -945,7 +945,7 @@ s32 func_80A9617C(EnAz* this, PlayState* play) {
|
||||
|
||||
case 0x10EB:
|
||||
if (play->msgCtx.choiceIndex == 0) {
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
switch (this->unk_2FA) {
|
||||
case 4:
|
||||
@@ -1497,7 +1497,7 @@ void func_80A97A28(EnAz* this, PlayState* play) {
|
||||
|
||||
void func_80A97A40(EnAz* this, PlayState* play) {
|
||||
if (SubS_StartCutscene(&this->actor, 0, CS_ID_NONE, SUBS_CUTSCENE_WITH_PLAYER)) {
|
||||
play->msgCtx.msgMode = 0;
|
||||
play->msgCtx.msgMode = MSGMODE_NONE;
|
||||
play->msgCtx.msgLength = 0;
|
||||
func_80A97A9C(this, play);
|
||||
}
|
||||
@@ -1525,7 +1525,7 @@ void func_80A97AB4(EnAz* this, PlayState* play) {
|
||||
case 0x10D8:
|
||||
if (play->msgCtx.choiceIndex == 0) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
func_800FD750(NA_BGM_TIMED_MINI_GAME);
|
||||
func_80A94AB8(this, play, 1);
|
||||
func_80A979DC(this, play);
|
||||
|
||||
@@ -596,7 +596,7 @@ void EnBaba_FollowSchedule_Talk(EnBaba* this, PlayState* play) {
|
||||
u8 talkState = Message_GetState(&play->msgCtx);
|
||||
|
||||
if (((talkState == TEXT_STATE_5) || (talkState == TEXT_STATE_DONE)) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnBaba_FollowSchedule;
|
||||
}
|
||||
@@ -610,7 +610,7 @@ void EnBaba_Talk(EnBaba* this, PlayState* play) {
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
if (this->stateFlags & BOMB_SHOP_LADY_STATE_END_CONVERSATION) {
|
||||
this->stateFlags &= ~BOMB_SHOP_LADY_STATE_END_CONVERSATION;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
if (this->stateFlags & BOMB_SHOP_LADY_STATE_AUTOTALK) {
|
||||
if (CHECK_QUEST_ITEM(QUEST_BOMBERS_NOTEBOOK)) {
|
||||
@@ -629,7 +629,7 @@ void EnBaba_Talk(EnBaba* this, PlayState* play) {
|
||||
}
|
||||
} else if (this->stateFlags & BOMB_SHOP_LADY_STATE_GIVE_BLAST_MASK) {
|
||||
this->stateFlags &= ~BOMB_SHOP_LADY_STATE_GIVE_BLAST_MASK;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnBaba_GiveBlastMask;
|
||||
} else {
|
||||
|
||||
@@ -101,7 +101,7 @@ void func_809CCEE8(EnBji01* this, PlayState* play) {
|
||||
}
|
||||
}
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
play->msgCtx.msgMode = 0;
|
||||
play->msgCtx.msgMode = MSGMODE_NONE;
|
||||
play->msgCtx.msgLength = 0;
|
||||
func_809CD028(this, play);
|
||||
} else {
|
||||
|
||||
@@ -393,7 +393,7 @@ void func_809C51B4(EnBomBowlMan* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if ((play->msgCtx.bombersNotebookEventQueueCount == 0) &&
|
||||
((play->msgCtx.msgMode == 0) || (Message_GetState(&play->msgCtx) == TEXT_STATE_DONE))) {
|
||||
((play->msgCtx.msgMode == MSGMODE_NONE) || (Message_GetState(&play->msgCtx) == TEXT_STATE_DONE))) {
|
||||
play->nextEntrance = Entrance_CreateFromSpawn(6);
|
||||
gSaveContext.nextCutsceneIndex = 0;
|
||||
play->transitionTrigger = TRANS_TRIGGER_START;
|
||||
@@ -511,7 +511,7 @@ void func_809C5738(EnBomBowlMan* this, PlayState* play) {
|
||||
|
||||
if (this->unk_2C2 == 0) {
|
||||
if ((play->msgCtx.bombersNotebookEventQueueCount == 0) &&
|
||||
((play->msgCtx.msgMode == 0) || (Message_GetState(&play->msgCtx) == TEXT_STATE_DONE))) {
|
||||
((play->msgCtx.msgMode == MSGMODE_NONE) || (Message_GetState(&play->msgCtx) == TEXT_STATE_DONE))) {
|
||||
this->unk_2C2 = 1;
|
||||
func_809C4B6C(this);
|
||||
if (CutsceneManager_GetCurrentCsId() == CS_ID_GLOBAL_TALK) {
|
||||
|
||||
@@ -268,7 +268,7 @@ void EnCow_Talk(EnCow* this, PlayState* play) {
|
||||
}
|
||||
|
||||
void EnCow_Idle(EnCow* this, PlayState* play) {
|
||||
if ((play->msgCtx.ocarinaMode == 0) || (play->msgCtx.ocarinaMode == 4)) {
|
||||
if ((play->msgCtx.ocarinaMode == OCARINA_MODE_NONE) || (play->msgCtx.ocarinaMode == OCARINA_MODE_END)) {
|
||||
if (gHorsePlayedEponasSong) {
|
||||
if (this->flags & EN_COW_FLAG_WONT_GIVE_MILK) {
|
||||
this->flags &= ~EN_COW_FLAG_WONT_GIVE_MILK;
|
||||
|
||||
@@ -429,7 +429,7 @@ void func_80B3EE8C(EnDai* this, PlayState* play) {
|
||||
void func_80B3EEDC(EnDai* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if ((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == 3) &&
|
||||
if ((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_GORON_LULLABY)) {
|
||||
EnDai_ChangeAnim(this, ENDAI_ANIM_1);
|
||||
this->actionFunc = func_80B3EE8C;
|
||||
|
||||
@@ -372,7 +372,7 @@ void func_80A71C3C(EnDno* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
play->msgCtx.msgMode = 0;
|
||||
play->msgCtx.msgMode = MSGMODE_NONE;
|
||||
play->msgCtx.msgLength = 0;
|
||||
func_80A71E54(this, play);
|
||||
} else if (this->actor.xzDistToPlayer < 60.0f) {
|
||||
@@ -482,7 +482,7 @@ void func_80A71F18(EnDno* this, PlayState* play) {
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
SubS_ChangeAnimationBySpeedInfo(&this->skelAnime, sAnimationSpeedInfo,
|
||||
EN_DNO_ANIM_IMPLORE_END, &this->animIndex);
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -688,7 +688,7 @@ void func_80A725F8(EnDno* this, PlayState* play) {
|
||||
case 0x800:
|
||||
case 0x801:
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
this->unk_452 = 1;
|
||||
this->unk_454 = 0.0f;
|
||||
SubS_ChangeAnimationBySpeedInfo(&this->skelAnime, sAnimationSpeedInfo, EN_DNO_ANIM_OPEN_PARASOL,
|
||||
|
||||
@@ -5605,7 +5605,7 @@ void EnFishing_UpdateOwner(Actor* thisx, PlayState* play2) {
|
||||
|
||||
Audio_PlaySfx_AtPos(&sStreamSoundProjectedPos, NA_SE_EV_WATER_WALL - SFX_FLAG);
|
||||
|
||||
if (gSaveContext.options.language == 0) { // Added in MM
|
||||
if (gSaveContext.options.language == LANGUAGE_JPN) { // Added in MM
|
||||
gSaveContext.minigameScore = D_8090CCF8;
|
||||
} else {
|
||||
gSaveContext.minigameScore = (SQ((f32)D_8090CCF8) * 0.0036f) + 0.5f;
|
||||
|
||||
@@ -410,7 +410,7 @@ void EnFsn_EndInteraction(EnFsn* this, PlayState* play) {
|
||||
this->cutsceneState = ENFSN_CUTSCENESTATE_STOPPED;
|
||||
}
|
||||
Actor_ProcessTalkRequest(&this->actor, &play->state);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
@@ -995,7 +995,7 @@ void EnFsn_MakeOffer(EnFsn* this, PlayState* play) {
|
||||
switch (play->msgCtx.choiceIndex) {
|
||||
case 0:
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
if (this->cutsceneState == ENFSN_CUTSCENESTATE_PLAYING) {
|
||||
CutsceneManager_Stop(this->csId);
|
||||
@@ -1204,7 +1204,7 @@ void EnFsn_HandleCanPlayerBuyItem(EnFsn* this, PlayState* play) {
|
||||
item = this->items[this->cursorIndex];
|
||||
item->buyFanfareFunc(play, item);
|
||||
Actor_OfferGetItem(&this->actor, play, this->items[this->cursorIndex]->getItemId, 300.0f, 300.0f);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
@@ -1246,7 +1246,7 @@ void EnFsn_SetupEndInteraction(EnFsn* this, PlayState* play) {
|
||||
if (play->msgCtx.bombersNotebookEventQueueCount == 0) {
|
||||
EnFsn_EndInteraction(this, play);
|
||||
} else {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
}
|
||||
} else {
|
||||
@@ -1327,7 +1327,7 @@ void EnFsn_AskCanBuyMore(EnFsn* this, PlayState* play) {
|
||||
if (play->msgCtx.bombersNotebookEventQueueCount == 0) {
|
||||
EnFsn_EndInteraction(this, play);
|
||||
} else {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
}
|
||||
} else {
|
||||
@@ -1378,7 +1378,7 @@ void EnFsn_AskCanBuyAterRunningOutOfItems(EnFsn* this, PlayState* play) {
|
||||
if (play->msgCtx.bombersNotebookEventQueueCount == 0) {
|
||||
EnFsn_EndInteraction(this, play);
|
||||
} else {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
}
|
||||
} else {
|
||||
@@ -1433,12 +1433,12 @@ void EnFsn_ConverseBackroom(EnFsn* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
if (this->flags & ENFSN_END_CONVERSATION) {
|
||||
this->flags &= ~ENFSN_END_CONVERSATION;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnFsn_IdleBackroom;
|
||||
} else if (this->flags & ENFSN_GIVE_ITEM) {
|
||||
this->flags &= ~ENFSN_GIVE_ITEM;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnFsn_GiveItem;
|
||||
} else {
|
||||
|
||||
@@ -379,8 +379,8 @@ void func_80B0FE7C(PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80B0FEBC(EnGb2* this, PlayState* play) {
|
||||
if ((play->msgCtx.ocarinaMode == 3) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING)) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
if ((play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING)) {
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
SET_EVENTINF(EVENTINF_47);
|
||||
this->unk_26E = 0x14D1;
|
||||
this->unk_288 = 10;
|
||||
@@ -400,7 +400,7 @@ void func_80B0FFA8(EnGb2* this, PlayState* play) {
|
||||
if (talkState == TEXT_STATE_5) {
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
if (this->unk_26C & 2) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_26E = 0x14D1;
|
||||
this->unk_288 = 30;
|
||||
@@ -443,7 +443,7 @@ void func_80B0FFA8(EnGb2* this, PlayState* play) {
|
||||
case 0:
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
Rupees_ChangeBy(-this->unk_288);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
func_800B7298(play, NULL, PLAYER_CSMODE_WAIT);
|
||||
this->actionFunc = func_80B11344;
|
||||
@@ -568,7 +568,7 @@ void func_80B10634(EnGb2* this, PlayState* play) {
|
||||
if (talkState == TEXT_STATE_5) {
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
if (this->unk_26C & 2) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_26C &= ~2;
|
||||
if (this->unk_26E == 0x14DD) {
|
||||
@@ -598,7 +598,7 @@ void func_80B10634(EnGb2* this, PlayState* play) {
|
||||
} else {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
Rupees_ChangeBy(-this->unk_288);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
func_800B7298(play, NULL, PLAYER_CSMODE_WAIT);
|
||||
this->actionFunc = func_80B11344;
|
||||
@@ -771,7 +771,7 @@ void func_80B10E98(EnGb2* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
if (this->unk_26C & 2) {
|
||||
this->unk_26C &= ~2;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
if ((this->unk_26E != 0x14E8) && (this->unk_26E != 0x14EA)) {
|
||||
CutsceneManager_Stop(this->csIdList[this->csIdIndex]);
|
||||
@@ -814,7 +814,7 @@ void func_80B11048(EnGb2* this, PlayState* play) {
|
||||
void func_80B110F8(EnGb2* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
if (this->unk_26C & 2) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_26C &= ~2;
|
||||
this->actionFunc = func_80B10A48;
|
||||
|
||||
@@ -598,7 +598,7 @@ void func_80BB26EC(EnGeg* this, PlayState* play) {
|
||||
|
||||
case 0xD61:
|
||||
CutsceneManager_Stop(this->csId);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_230 &= ~0x10;
|
||||
this->actionFunc = func_80BB221C;
|
||||
@@ -617,14 +617,14 @@ void func_80BB27D4(EnGeg* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
switch (this->unk_496) {
|
||||
case 0xD63:
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = func_80BB221C;
|
||||
break;
|
||||
|
||||
case 0xD69:
|
||||
this->nextCsId = this->csIdList[6];
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = func_80BB2520;
|
||||
break;
|
||||
@@ -632,7 +632,7 @@ void func_80BB27D4(EnGeg* this, PlayState* play) {
|
||||
case 0xD6D:
|
||||
case 0xD6F:
|
||||
case 0xD8A:
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = func_80BB31B8;
|
||||
break;
|
||||
@@ -640,7 +640,7 @@ void func_80BB27D4(EnGeg* this, PlayState* play) {
|
||||
case 0xD72:
|
||||
case 0xD75:
|
||||
case 0xD8B:
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_230 &= ~0x10;
|
||||
this->nextCsId = this->csIdList[7];
|
||||
@@ -667,7 +667,7 @@ void func_80BB2944(EnGeg* this, PlayState* play) {
|
||||
}
|
||||
} else if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
if (this->unk_496 == 0xD67) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->nextCsId = this->csIdList[4];
|
||||
this->actionFunc = func_80BB2520;
|
||||
@@ -684,7 +684,7 @@ void func_80BB2A54(EnGeg* this, PlayState* play) {
|
||||
CutsceneManager_Stop(this->csId);
|
||||
this->unk_230 &= ~0x10;
|
||||
this->unk_244 = 65;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = func_80BB347C;
|
||||
} else {
|
||||
|
||||
@@ -278,7 +278,7 @@ void func_80B35450(EnGg* this, PlayState* play) {
|
||||
void func_80B3556C(EnGg* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
if (this->animIndex == ENGG_ANIM_4) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_308 = 0;
|
||||
this->actor.flags &= ~ACTOR_FLAG_REACT_TO_LENS;
|
||||
@@ -429,7 +429,7 @@ void func_80B359DC(EnGg* this, PlayState* play) {
|
||||
this->unk_306 = 0;
|
||||
}
|
||||
|
||||
if ((player->transformation == PLAYER_FORM_HUMAN) && (play->msgCtx.ocarinaMode == 3) &&
|
||||
if ((player->transformation == PLAYER_FORM_HUMAN) && (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING)) {
|
||||
if (!CHECK_WEEKEVENTREG(WEEKEVENTREG_19_80)) {
|
||||
SET_WEEKEVENTREG(WEEKEVENTREG_19_80);
|
||||
|
||||
@@ -201,7 +201,7 @@ void func_80B3B05C(EnGg2* this, PlayState* play) {
|
||||
|
||||
void func_80B3B0A0(EnGg2* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_2F0 = 0;
|
||||
this->actionFunc = func_80B3B5D4;
|
||||
|
||||
@@ -223,7 +223,7 @@ void EnGinkoMan_DepositDialogue(EnGinkoMan* this, PlayState* play) {
|
||||
break;
|
||||
|
||||
case 0x464:
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
EnGinkoMan_SetupStamp(this); // stamp player
|
||||
break;
|
||||
|
||||
|
||||
@@ -294,7 +294,7 @@ s32 func_80B50854(EnGk* this, PlayState* play) {
|
||||
this->unk_1E4 &= ~0x40;
|
||||
}
|
||||
|
||||
if ((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == 3) &&
|
||||
if ((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_GORON_LULLABY)) {
|
||||
Flags_SetSwitch(play, ENGK_GET_3F00(&this->actor));
|
||||
this->animIndex = ENGK_ANIM_3;
|
||||
@@ -545,7 +545,7 @@ void func_80B51410(EnGk* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if (this->actor.xzDistToPlayer < 100.0f) {
|
||||
if ((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == 3) &&
|
||||
if ((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_GORON_LULLABY_INTRO)) {
|
||||
this->unk_1E4 |= 0x20;
|
||||
}
|
||||
@@ -906,7 +906,7 @@ void func_80B5202C(EnGk* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if (this->unk_1E4 & 2) {
|
||||
if ((play->msgCtx.ocarinaMode != 1) && (play->msgCtx.ocarinaMode != 3) &&
|
||||
if ((play->msgCtx.ocarinaMode != OCARINA_MODE_ACTIVE) && (play->msgCtx.ocarinaMode != OCARINA_MODE_EVENT) &&
|
||||
(play->csCtx.state == CS_STATE_IDLE)) {
|
||||
Audio_PlaySfx_AtFixedPos(&this->actor.projectedPos, NA_SE_EN_GOLON_KID_CRY - SFX_FLAG);
|
||||
}
|
||||
@@ -918,7 +918,7 @@ void func_80B5202C(EnGk* this, PlayState* play) {
|
||||
|
||||
void func_80B5216C(EnGk* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = func_80B51698;
|
||||
}
|
||||
|
||||
@@ -748,7 +748,7 @@ s32 EnGo_IsFallingAsleep(EnGo* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
s32 isFallingAsleep = false;
|
||||
|
||||
if (((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == 3) &&
|
||||
if (((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_GORON_LULLABY) && (this->sleepState == ENGO_AWAKE) &&
|
||||
(this->actor.xzDistToPlayer < 400.0f)) ||
|
||||
(!CHECK_WEEKEVENTREG(WEEKEVENTREG_CALMED_GORON_ELDERS_SON) && (play->sceneId == SCENE_16GORON_HOUSE) &&
|
||||
|
||||
@@ -277,13 +277,13 @@ void func_80997FF0(EnGs* this, PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80998040(EnGs* this, PlayState* play) {
|
||||
func_80152434(play, 1);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_FREE_PLAY);
|
||||
this->actionFunc = func_8099807C;
|
||||
}
|
||||
|
||||
void func_8099807C(EnGs* this, PlayState* play) {
|
||||
switch (play->msgCtx.ocarinaMode) {
|
||||
case 3:
|
||||
case OCARINA_MODE_EVENT:
|
||||
switch (play->msgCtx.lastPlayedSong) {
|
||||
case OCARINA_SONG_HEALING:
|
||||
case OCARINA_SONG_EPONAS:
|
||||
@@ -341,11 +341,11 @@ void func_8099807C(EnGs* this, PlayState* play) {
|
||||
}
|
||||
break;
|
||||
|
||||
case 0:
|
||||
case 4:
|
||||
case OCARINA_MODE_NONE:
|
||||
case OCARINA_MODE_END:
|
||||
func_80998300(this, play);
|
||||
|
||||
case 26:
|
||||
case OCARINA_MODE_APPLY_DOUBLE_SOT:
|
||||
func_80997D14(this, play);
|
||||
break;
|
||||
|
||||
@@ -1030,7 +1030,7 @@ void EnGs_Update(Actor* thisx, PlayState* play) {
|
||||
EnGs* this = THIS;
|
||||
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
play->msgCtx.msgMode = 0;
|
||||
play->msgCtx.msgMode = MSGMODE_NONE;
|
||||
play->msgCtx.msgLength = 0;
|
||||
this->collider.base.acFlags &= ~AC_HIT;
|
||||
func_80997DEC(this, play);
|
||||
|
||||
@@ -398,7 +398,7 @@ void EnHg_WaitForPlayerAction(EnHg* this, PlayState* play) {
|
||||
sHasSoundPlayed = false;
|
||||
}
|
||||
|
||||
if (play->msgCtx.ocarinaMode == 3) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) {
|
||||
if ((play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING) && (GET_PLAYER_FORM == PLAYER_FORM_HUMAN)) {
|
||||
if (INV_CONTENT(ITEM_MASK_GIBDO) == ITEM_MASK_GIBDO) {
|
||||
this->csIdIndex = HG_CS_SONG_OF_HEALING;
|
||||
|
||||
@@ -210,8 +210,8 @@ void func_80BDB2B8(EnHiddenNuts* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if (!(this->actor.xzDistToPlayer > 120.0f)) {
|
||||
if ((play->msgCtx.ocarinaMode == 3) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_SONATA)) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
if ((play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_SONATA)) {
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
func_80BDB788(this);
|
||||
} else if (func_801A5100() == 2) {
|
||||
func_80BDB788(this);
|
||||
|
||||
@@ -417,7 +417,7 @@ void func_80C2077C(EnHintSkb* this, PlayState* play) {
|
||||
Message_StartTextbox(play, 0x1147, &this->actor);
|
||||
this->unk_3E6 = 0x1147;
|
||||
if (this->skelAnime.animation == &object_skb_Anim_00697C) {
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
this->actor.speed = 2.4f;
|
||||
this->actor.gravity = -1.0f;
|
||||
this->actor.velocity.y = 3.0f;
|
||||
|
||||
@@ -365,7 +365,7 @@ void EnJg_GoronShrineTalk(EnJg* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
if ((this->textId == 0xDCC) || (this->textId == 0xDDD) || (this->textId == 0xDE0)) {
|
||||
// There is nothing more to say after these lines, so end the current conversation.
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->flags &= ~FLAG_LOOKING_AT_PLAYER;
|
||||
this->actionFunc = EnJg_GoronShrineIdle;
|
||||
@@ -430,7 +430,7 @@ void EnJg_AlternateTalkOrWalkInPlace(EnJg* this, PlayState* play) {
|
||||
}
|
||||
} else if (this->animIndex == EN_JG_ANIM_SURPRISE_LOOP) {
|
||||
if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->flags &= ~FLAG_LOOKING_AT_PLAYER;
|
||||
this->animIndex = EN_JG_ANIM_WALK;
|
||||
@@ -488,7 +488,7 @@ void EnJg_Talk(EnJg* this, PlayState* play) {
|
||||
temp = this->textId;
|
||||
if ((temp == 0xDB4) || (temp == 0xDB5) || (temp == 0xDC4) || (temp == 0xDC6)) {
|
||||
// There is nothing more to say after these lines, so end the current conversation.
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->flags &= ~FLAG_LOOKING_AT_PLAYER;
|
||||
this->actionFunc = EnJg_SetupWalk;
|
||||
@@ -500,7 +500,7 @@ void EnJg_Talk(EnJg* this, PlayState* play) {
|
||||
if (!CHECK_WEEKEVENTREG(WEEKEVENTREG_24_80)) {
|
||||
// The player hasn't talked to the Goron Child at least once, so they can't learn
|
||||
// the Lullaby Intro. End the current conversation with the player.
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->flags &= ~FLAG_LOOKING_AT_PLAYER;
|
||||
this->actionFunc = EnJg_SetupWalk;
|
||||
@@ -514,7 +514,7 @@ void EnJg_Talk(EnJg* this, PlayState* play) {
|
||||
// To get to this point, the player *has* talked to the Goron Child, but doesn't
|
||||
// already have the Lullaby or Lullaby Intro. End the current conversation and
|
||||
// start the cutscene that teaches the Lullaby Intro.
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->flags &= ~FLAG_LOOKING_AT_PLAYER;
|
||||
this->csId = EnJg_GetCsIdForTeachingLullabyIntro(this);
|
||||
@@ -605,7 +605,7 @@ void EnJg_FrozenIdle(EnJg* this, PlayState* play) {
|
||||
|
||||
void EnJg_EndFrozenInteraction(EnJg* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_DONE) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnJg_FrozenIdle;
|
||||
}
|
||||
|
||||
@@ -575,7 +575,7 @@ void EnKakasi_SetupSongTeach(EnKakasi* this, PlayState* play) {
|
||||
*/
|
||||
void EnKakasi_OcarinaRemark(EnKakasi* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
func_80152434(play, 0x35);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_SCARECROW_SPAWN_RECORDING);
|
||||
this->unkState1A8 = 0;
|
||||
if (CutsceneManager_GetCurrentCsId() == CS_ID_GLOBAL_TALK) {
|
||||
CutsceneManager_Stop(CS_ID_GLOBAL_TALK);
|
||||
@@ -632,7 +632,7 @@ void EnKakasi_TeachingSong(EnKakasi* this, PlayState* play) {
|
||||
func_8096FAAC(this, play);
|
||||
func_8096FBB8(this, play);
|
||||
|
||||
if (play->msgCtx.ocarinaMode == 4) { // song failed
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_END) { // song failed
|
||||
this->unk190 = 0;
|
||||
this->unkCounter1A4 = 0;
|
||||
CutsceneManager_Stop(this->csIdList[0]);
|
||||
@@ -645,7 +645,7 @@ void EnKakasi_TeachingSong(EnKakasi* this, PlayState* play) {
|
||||
EnKakasi_ChangeAnim(this, ENKAKASI_ANIM_ARMS_CROSSED_ROCKING);
|
||||
this->actionFunc = EnKakasi_RegularDialogue;
|
||||
|
||||
} else if (play->msgCtx.ocarinaMode == 3) { // song success
|
||||
} else if (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) { // song success
|
||||
this->postTeachTimer = 30;
|
||||
this->skelAnime.playSpeed = 2.0f;
|
||||
EnKakasi_ChangeAnim(this, ENKAKASI_ANIM_HOPPING_REGULAR);
|
||||
@@ -668,7 +668,7 @@ void EnKakasi_PostSongLearnTwirl(EnKakasi* this, PlayState* play) {
|
||||
|
||||
void EnKakasi_SetupPostSongLearnDialogue(EnKakasi* this, PlayState* play) {
|
||||
CutsceneManager_Stop(this->csIdList[0]);
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
this->unk190 = 0;
|
||||
this->unkCounter1A4 = 0;
|
||||
EnKakasi_ChangeAnim(this, ENKAKASI_ANIM_HOPPING_REGULAR);
|
||||
@@ -1054,9 +1054,9 @@ void EnKakasi_SetupIdleUnderground(EnKakasi* this) {
|
||||
|
||||
void EnKakasi_IdleUnderground(EnKakasi* this, PlayState* play) {
|
||||
if (CHECK_WEEKEVENTREG(WEEKEVENTREG_79_08) && (this->picto.actor.xzDistToPlayer < this->songSummonDist) &&
|
||||
((BREG(1) != 0) || (play->msgCtx.ocarinaMode == 0xD))) {
|
||||
((BREG(1) != 0) || (play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_SCARECROW_SPAWN))) {
|
||||
this->picto.actor.flags &= ~ACTOR_FLAG_CANT_LOCK_ON;
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
this->actionFunc = EnKakasi_SetupRiseOutOfGround;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -824,13 +824,14 @@ void EnKanban_Update(Actor* thisx, PlayState* play) {
|
||||
|
||||
switch (this->ocarinaFlag) {
|
||||
case 0:
|
||||
if (play->msgCtx.ocarinaMode == 1) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_ACTIVE) {
|
||||
this->ocarinaFlag = 1;
|
||||
}
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if ((play->msgCtx.ocarinaMode == 4) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING)) {
|
||||
if ((play->msgCtx.ocarinaMode == OCARINA_MODE_END) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING)) {
|
||||
this->actionState = ENKANBAN_REPAIR;
|
||||
this->bounceX = 1;
|
||||
Audio_PlaySfx(NA_SE_SY_TRE_BOX_APPEAR);
|
||||
|
||||
@@ -412,7 +412,7 @@ void func_80959E18(EnMk* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if (func_800B8718(&this->actor, &play->state)) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
this->actionFunc = func_80959D28;
|
||||
if (GET_PLAYER_FORM == PLAYER_FORM_ZORA) {
|
||||
this->actor.csId = this->csIdList[0];
|
||||
|
||||
@@ -1318,7 +1318,7 @@ void EnMnk_MonkeyTiedUp_ReactToWrongInstrument(EnMnk* this, PlayState* play) {
|
||||
case 0x8DB:
|
||||
Message_CloseTextbox(play);
|
||||
this->actionFunc = EnMnk_MonkeyTiedUp_WaitForInstrument;
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
EnMnk_MonkeyTiedUp_SetAnim(this, MONKEY_TIEDUP_ANIM_WAIT);
|
||||
if (this->csId != CS_ID_NONE) {
|
||||
CutsceneManager_Stop(this->csId);
|
||||
@@ -1489,7 +1489,7 @@ void EnMnk_MonkeyTiedUp_WaitForInstrument(EnMnk* this, PlayState* play) {
|
||||
this->csId = 2;
|
||||
SET_EVENTINF(EVENTINF_24);
|
||||
this->picto.actor.csId = this->csIdList[2];
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
CutsceneManager_Queue(this->csIdList[2]);
|
||||
return;
|
||||
|
||||
@@ -1577,7 +1577,7 @@ void EnMnk_MonkeyTiedUp_Wait(EnMnk* this, PlayState* play) {
|
||||
this->csId = 2;
|
||||
SET_EVENTINF(EVENTINF_24);
|
||||
this->picto.actor.csId = this->csIdList[2];
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
CutsceneManager_Queue(this->csIdList[2]);
|
||||
} else if (Actor_ProcessTalkRequest(&this->picto.actor, &play->state)) {
|
||||
if (gSaveContext.save.playerForm == PLAYER_FORM_DEKU) {
|
||||
|
||||
@@ -81,7 +81,7 @@ void func_8093E518(EnOkarinaTag* this, PlayState* play) {
|
||||
var_v1 = this->unk14A;
|
||||
if (var_v1 == 6) {
|
||||
var_v1 = 0xA;
|
||||
if (gSaveContext.save.saveInfo.unk_F41 == 0) {
|
||||
if (!gSaveContext.save.saveInfo.scarecrowSpawnSongSet) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -89,7 +89,7 @@ void func_8093E518(EnOkarinaTag* this, PlayState* play) {
|
||||
var_v1 = 0;
|
||||
}
|
||||
if (func_800B8718(&this->actor, &play->state)) {
|
||||
func_80152434(play, var_v1 + 0x29);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_CHECK_HEALING + var_v1);
|
||||
this->actionFunc = func_8093E68C;
|
||||
} else {
|
||||
yDiff = ABS_ALT((s16)(this->actor.yawTowardsPlayer - this->actor.world.rot.y));
|
||||
@@ -111,14 +111,17 @@ void func_8093E518(EnOkarinaTag* this, PlayState* play) {
|
||||
}
|
||||
|
||||
void func_8093E68C(EnOkarinaTag* this, PlayState* play) {
|
||||
if (play->msgCtx.ocarinaMode == 4) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_END) {
|
||||
this->actionFunc = func_8093E518;
|
||||
} else {
|
||||
if ((play->msgCtx.ocarinaMode == 3) ||
|
||||
((this->unk14A == -1) &&
|
||||
((play->msgCtx.ocarinaMode == 5) || (play->msgCtx.ocarinaMode == 6) || (play->msgCtx.ocarinaMode == 7) ||
|
||||
(play->msgCtx.ocarinaMode == 8) || (play->msgCtx.ocarinaMode == 0xA) || (play->msgCtx.ocarinaMode == 9) ||
|
||||
(play->msgCtx.ocarinaMode == 0xF)))) {
|
||||
if ((play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) ||
|
||||
((this->unk14A == -1) && ((play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_TIME) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_HEALING) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_EPONAS) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_SOARING) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_SUNS) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_STORMS) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_F)))) {
|
||||
if (this->switchFlags >= 0) {
|
||||
switch (this->unk148) {
|
||||
case 0:
|
||||
@@ -136,7 +139,7 @@ void func_8093E68C(EnOkarinaTag* this, PlayState* play) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
Audio_PlaySfx(NA_SE_SY_CORRECT_CHIME);
|
||||
this->actionFunc = func_8093E518;
|
||||
}
|
||||
|
||||
@@ -84,14 +84,14 @@ Actor* func_80B11F44(PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80B11F78(EnOnpuman* this, PlayState* play) {
|
||||
if (play->msgCtx.ocarinaMode == 4) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_END) {
|
||||
this->actionFunc = func_80B121D8;
|
||||
if (this->actor.csId != CS_ID_NONE) {
|
||||
CutsceneManager_Stop(this->actor.csId);
|
||||
}
|
||||
} else if (play->msgCtx.ocarinaMode == 3) {
|
||||
} else if (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) {
|
||||
Audio_PlaySfx(NA_SE_SY_CORRECT_CHIME);
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
if (this->actor.csId != CS_ID_NONE) {
|
||||
CutsceneManager_Stop(this->actor.csId);
|
||||
}
|
||||
@@ -118,7 +118,7 @@ void func_80B1202C(EnOnpuman* this, PlayState* play2) {
|
||||
|
||||
case 0x8D6:
|
||||
this->actionFunc = func_80B11F78;
|
||||
func_80152434(play, 0x3A);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_3A);
|
||||
if (this->unk_2A0 != NULL) {
|
||||
this->unk_2A0->home.rot.x = 0;
|
||||
}
|
||||
|
||||
@@ -888,7 +888,7 @@ void EnOsn_Talk(EnOsn* this, PlayState* play) {
|
||||
if (((talkState == TEXT_STATE_DONE) || (talkState == TEXT_STATE_5)) && Message_ShouldAdvance(play)) {
|
||||
if (this->stateFlags & OSN_STATE_END_CONVERSATION) {
|
||||
this->stateFlags &= ~OSN_STATE_END_CONVERSATION;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnOsn_Idle;
|
||||
} else {
|
||||
|
||||
@@ -304,7 +304,7 @@ void EnOssan_EndInteraction(PlayState* play, EnOssan* this) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
Actor_ProcessTalkRequest(&this->actor, &play->state);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
@@ -994,7 +994,7 @@ void EnOssan_SetupBuyItemWithFanfare(PlayState* play, EnOssan* this) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
Actor_OfferGetItem(&this->actor, play, this->items[this->cursorIndex]->getItemId, 300.0f, 300.0f);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->stateFlags2 &= ~PLAYER_STATE2_20000000;
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
@@ -1124,7 +1124,7 @@ void EnOssan_BuyItemWithFanfare(EnOssan* this, PlayState* play) {
|
||||
|
||||
void EnOssan_SetupItemPurchased(EnOssan* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_DONE) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
EnOssan_SetupAction(this, EnOssan_ItemPurchased);
|
||||
if (this->cutsceneState == ENOSSAN_CUTSCENESTATE_STOPPED) {
|
||||
|
||||
@@ -368,7 +368,7 @@ void EnRuppecrow_UpdatePosition(EnRuppecrow* this, PlayState* play) {
|
||||
s32 EnRuppecrow_CheckPlayedMatchingSong(PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if (play->msgCtx.ocarinaMode == 0x3) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) {
|
||||
switch (player->transformation) {
|
||||
case PLAYER_FORM_DEKU:
|
||||
if (play->msgCtx.lastPlayedSong == OCARINA_SONG_SONATA) {
|
||||
|
||||
@@ -811,7 +811,7 @@ s32 EnSGoro_CheckLullaby(EnSGoro* this, PlayState* play) {
|
||||
s32 actorType;
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if ((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == 3)) {
|
||||
if ((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT)) {
|
||||
if (play->msgCtx.lastPlayedSong == OCARINA_SONG_GORON_LULLABY) {
|
||||
this->animInfoIndex = EN_S_GORO_ANIM_ROLLUP;
|
||||
SubS_ChangeAnimationByInfoS(&this->skelAnime, sAnimationInfo, this->animInfoIndex);
|
||||
@@ -1157,7 +1157,7 @@ void EnSGoro_SpringShrineGoron_Talk(EnSGoro* this, PlayState* play) {
|
||||
if (this->actionFlags & EN_S_GORO_ACTIONFLAG_LASTMESSAGE) {
|
||||
this->actionFlags &= ~EN_S_GORO_ACTIONFLAG_LASTMESSAGE;
|
||||
this->actionFlags &= ~EN_S_GORO_ACTIONFLAG_ENGAGED;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnSGoro_SpringShrineGoron_Idle;
|
||||
return;
|
||||
@@ -1243,7 +1243,7 @@ void EnSGoro_ShopGoron_Talk(EnSGoro* this, PlayState* play) {
|
||||
|
||||
this->textId = EnSGoro_BombshopGoron_NextTextId(this, play);
|
||||
if ((this->textId == 0x675) || (this->textId == 0x676)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Actor_OfferGetItem(&this->actor, play, GI_POWDER_KEG, 300.0f, 300.0f);
|
||||
this->actionFunc = EnSGoro_ShopGoron_TakePayment;
|
||||
@@ -1288,7 +1288,7 @@ void EnSGoro_Sleep(EnSGoro* this, PlayState* play) {
|
||||
void EnSGoro_SleepTalk(EnSGoro* this, PlayState* play) {
|
||||
if (Message_GetState(&play->msgCtx) == TEXT_STATE_DONE) {
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnSGoro_Sleep;
|
||||
}
|
||||
|
||||
@@ -318,7 +318,7 @@ void func_80BCB6D0(EnScopenuts* this, PlayState* play) {
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
if (this->unk_328 & 1) {
|
||||
this->unk_328 &= ~1;
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
|
||||
this->unk_328 &= ~4;
|
||||
@@ -341,7 +341,7 @@ void func_80BCB6D0(EnScopenuts* this, PlayState* play) {
|
||||
Message_StartTextbox(play, this->unk_33C, &this->actor);
|
||||
} else {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Rupees_ChangeBy(-this->unk_358);
|
||||
this->actionFunc = func_80BCB90C;
|
||||
|
||||
@@ -470,7 +470,7 @@ void func_80ADBAB8(EnSellnuts* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = func_80ADBBEC;
|
||||
func_800B7298(play, NULL, PLAYER_CSMODE_19);
|
||||
@@ -516,7 +516,7 @@ void func_80ADBD64(EnSellnuts* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_338 &= ~2;
|
||||
this->actor.flags &= ~ACTOR_FLAG_TARGETABLE;
|
||||
@@ -558,7 +558,7 @@ void func_80ADBE80(EnSellnuts* this, PlayState* play) {
|
||||
|
||||
void func_80ADBFA0(EnSellnuts* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
if (this->unk_34C == 0) {
|
||||
this->actionFunc = func_80ADB544;
|
||||
@@ -721,7 +721,7 @@ void func_80ADC6D0(EnSellnuts* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
if (player->transformation == PLAYER_FORM_DEKU) {
|
||||
if (gSaveContext.save.day == 3) {
|
||||
@@ -751,7 +751,7 @@ void func_80ADC7B4(EnSellnuts* this, PlayState* play) {
|
||||
CutsceneManager_Queue(this->csId);
|
||||
}
|
||||
} else if ((this->unk_366 == 1) && (talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_366 = 0;
|
||||
CutsceneManager_Stop(this->csId);
|
||||
|
||||
@@ -466,7 +466,7 @@ void EnSob1_EndInteraction(PlayState* play, EnSob1* this) {
|
||||
this->cutsceneState = ENSOB1_CUTSCENESTATE_STOPPED;
|
||||
}
|
||||
Actor_ProcessTalkRequest(&this->actor, &play->state);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
@@ -957,7 +957,7 @@ void EnSob1_SetupBuyItemWithFanfare(PlayState* play, EnSob1* this) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
Actor_OfferGetItem(&this->actor, play, this->items[this->cursorIndex]->getItemId, 300.0f, 300.0f);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->stateFlags2 &= ~PLAYER_STATE2_20000000;
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
@@ -1110,7 +1110,7 @@ void EnSob1_BuyItemWithFanfare(EnSob1* this, PlayState* play) {
|
||||
|
||||
void EnSob1_SetupItemPurchased(EnSob1* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_DONE) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
EnSob1_SetupAction(this, EnSob1_ItemPurchased);
|
||||
if (this->cutsceneState == ENSOB1_CUTSCENESTATE_STOPPED) {
|
||||
|
||||
@@ -1201,7 +1201,7 @@ void func_80BAD130(EnSuttari* this, PlayState* play) {
|
||||
u8 talkState = Message_GetState(&play->msgCtx);
|
||||
|
||||
if (((talkState == TEXT_STATE_5) || (talkState == TEXT_STATE_DONE)) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
if (this->flags1 & 8) {
|
||||
this->actionFunc = func_80BAD004;
|
||||
@@ -1238,7 +1238,7 @@ void func_80BAD2B4(EnSuttari* this, PlayState* play) {
|
||||
this->actionFunc = func_80BAD230;
|
||||
} else {
|
||||
CutsceneManager_Stop(this->csIdList[1]);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->flags1 |= 0x40;
|
||||
this->actionFunc = func_80BAD380;
|
||||
@@ -1262,7 +1262,7 @@ void func_80BAD380(EnSuttari* this, PlayState* play) {
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_10000000;
|
||||
this->flags1 &= ~0x4000;
|
||||
CutsceneManager_Stop(this->csIdList[1]);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->flags1 |= 0x40;
|
||||
}
|
||||
@@ -1403,7 +1403,7 @@ void func_80BADA9C(EnSuttari* this, PlayState* play) {
|
||||
((EnElf*)GET_PLAYER(play)->tatlActor)->unk_264 |= 0x10;
|
||||
this->flags2 &= ~1;
|
||||
}
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->textId = 0;
|
||||
if (this->flags1 & 1) {
|
||||
|
||||
@@ -362,7 +362,7 @@ void EnSyatekiMan_Swamp_HandleChoice(EnSyatekiMan* this, PlayState* play) {
|
||||
Rupees_ChangeBy(-20);
|
||||
SET_WEEKEVENTREG(WEEKEVENTREG_KICKOUT_WAIT);
|
||||
CLEAR_WEEKEVENTREG(WEEKEVENTREG_KICKOUT_TIME_PASSED);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->shootingGameState = SG_GAME_STATE_MOVING_PLAYER;
|
||||
player->stateFlags1 |= PLAYER_STATE1_20;
|
||||
@@ -415,7 +415,7 @@ void EnSyatekiMan_Swamp_HandleNormalMessage(EnSyatekiMan* this, PlayState* play)
|
||||
case 0xA2B: // The rules of the game are a piece of cake!
|
||||
case 0xA2C: // I keep saying - you have to aim with [Control Stick]!
|
||||
case 0xA35: // You almost had it! Well...just this once...here you go!
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->actor.freezeTimer = 0;
|
||||
Interface_InitMinigame(play);
|
||||
@@ -450,7 +450,7 @@ void EnSyatekiMan_Swamp_HandleNormalMessage(EnSyatekiMan* this, PlayState* play)
|
||||
break;
|
||||
|
||||
case 0xA34: // Perfect! Take this!
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->actor.freezeTimer = 0;
|
||||
gSaveContext.minigameStatus = MINIGAME_STATUS_END;
|
||||
@@ -485,7 +485,7 @@ void EnSyatekiMan_Swamp_Talk(EnSyatekiMan* this, PlayState* play) {
|
||||
|
||||
case TEXT_STATE_DONE:
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->stateFlags1 &= ~PLAYER_STATE1_20;
|
||||
CLEAR_WEEKEVENTREG(WEEKEVENTREG_KICKOUT_WAIT);
|
||||
@@ -764,7 +764,7 @@ void EnSyatekiMan_Town_HandleNormalMessage(EnSyatekiMan* this, PlayState* play)
|
||||
this->prevTextId = 0x400;
|
||||
}
|
||||
} else {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->actor.freezeTimer = 0;
|
||||
this->shootingGameState = SG_GAME_STATE_MOVING_PLAYER;
|
||||
@@ -777,7 +777,7 @@ void EnSyatekiMan_Town_HandleNormalMessage(EnSyatekiMan* this, PlayState* play)
|
||||
|
||||
case 0x3FE: // Our highest score is [score]. If you break the record, you'll win a prize!
|
||||
case 0x400: // Our highest score is [score]. Good luck!
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->actor.freezeTimer = 0;
|
||||
this->flagsIndex = 0;
|
||||
@@ -827,7 +827,7 @@ void EnSyatekiMan_Town_HandleNormalMessage(EnSyatekiMan* this, PlayState* play)
|
||||
case 0x405: // No way! That was perfect!
|
||||
case 0x406: // That was perfect!
|
||||
case 0x407: // You got a new record!
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->actor.freezeTimer = 0;
|
||||
gSaveContext.minigameStatus = MINIGAME_STATUS_END;
|
||||
|
||||
@@ -359,7 +359,7 @@ s32 func_80A3EA30(EnTest3* this, PlayState* play) {
|
||||
if (this->unk_D78->unk_1 != 0) {
|
||||
CutsceneManager_Stop(CS_ID_GLOBAL_TALK);
|
||||
CutsceneManager_Queue(this->csId);
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -391,7 +391,7 @@ s32 func_80A3EB8C(EnTest3* this, PlayState* play) {
|
||||
if (hideoutObject != NULL) {
|
||||
this->player.lockOnActor = hideoutObject;
|
||||
}
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
||||
@@ -48,12 +48,12 @@ static s16 sCurCsId;
|
||||
|
||||
void func_80A41D70(EnTest4* this, PlayState* play) {
|
||||
if (this->csIdIndex != 0) {
|
||||
func_80151A68(play, sNightMessages1[CURRENT_DAY - 1]);
|
||||
Message_DisplaySceneTitleCard(play, sNightMessages1[CURRENT_DAY - 1]);
|
||||
} else if ((sCsIdList[this->csIdIndex] < 0) || (play->actorCtx.flags & ACTORCTX_FLAG_1)) {
|
||||
if (play->actorCtx.flags & ACTORCTX_FLAG_1) {
|
||||
Sram_IncrementDay();
|
||||
gSaveContext.save.time = CLOCK_TIME(6, 0);
|
||||
func_80151A68(play, sDayMessages1[CURRENT_DAY - 1]);
|
||||
Message_DisplaySceneTitleCard(play, sDayMessages1[CURRENT_DAY - 1]);
|
||||
} else {
|
||||
this->csIdIndex = 0;
|
||||
this->unk_146 = gSaveContext.save.time += CLOCK_TIME_MINUTE;
|
||||
@@ -91,12 +91,12 @@ void func_80A41D70(EnTest4* this, PlayState* play) {
|
||||
|
||||
void func_80A41FA4(EnTest4* this, PlayState* play) {
|
||||
if (this->csIdIndex != 0) {
|
||||
func_80151A68(play, sNightMessages2[CURRENT_DAY - 1]);
|
||||
Message_DisplaySceneTitleCard(play, sNightMessages2[CURRENT_DAY - 1]);
|
||||
} else if ((sCsIdList[this->csIdIndex] < 0) || (play->actorCtx.flags & ACTORCTX_FLAG_1)) {
|
||||
Sram_IncrementDay();
|
||||
gSaveContext.save.time = CLOCK_TIME(6, 0);
|
||||
Interface_NewDay(play, CURRENT_DAY);
|
||||
func_80151A68(play, sDayMessages2[CURRENT_DAY - 1]);
|
||||
Message_DisplaySceneTitleCard(play, sDayMessages2[CURRENT_DAY - 1]);
|
||||
D_801BDBC8 = 0xFE;
|
||||
func_800FB758(play);
|
||||
func_800FEAF4(&play->envCtx);
|
||||
|
||||
@@ -685,7 +685,7 @@ void EnTest6_InvertedSoTCutscene(EnTest6* this, PlayState* play) {
|
||||
|
||||
if (DECR(this->timer) == 0) {
|
||||
EnTest6_StopInvertedSoTCutscene(this, play);
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1091,7 +1091,7 @@ void EnTest6_SharedSoTCutscene(EnTest6* this, PlayState* play) {
|
||||
} else {
|
||||
gSaveContext.respawnFlag = 2;
|
||||
}
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
@@ -1168,7 +1168,7 @@ void EnTest6_SharedSoTCutscene(EnTest6* this, PlayState* play) {
|
||||
play->nextEntrance = gSaveContext.respawn[RESPAWN_MODE_RETURN].entrance;
|
||||
play->transitionType = TRANS_TYPE_FADE_BLACK;
|
||||
gSaveContext.respawnFlag = 2;
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -116,13 +116,13 @@ void EnTimeTag_RooftopOath_Cutscene(EnTimeTag* this, PlayState* play) {
|
||||
void EnTimeTag_RooftopOath_Wait(EnTimeTag* this, PlayState* play) {
|
||||
Actor* thisx = &this->actor;
|
||||
|
||||
if ((play->msgCtx.ocarinaMode == 3) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_OATH)) {
|
||||
if (thisx->csId != CS_ID_NONE) {
|
||||
if ((play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_OATH)) {
|
||||
if (this->actor.csId != CS_ID_NONE) {
|
||||
this->actionFunc = EnTimeTag_RooftopOath_Cutscene;
|
||||
CutsceneManager_Queue(thisx->csId);
|
||||
gSaveContext.timerStates[TIMER_ID_MOON_CRASH] = TIMER_STATE_OFF;
|
||||
}
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -186,11 +186,11 @@ void EnTimeTag_Diary_AfterOcarina(EnTimeTag* this, PlayState* play) {
|
||||
}
|
||||
|
||||
void EnTimeTag_Diary_TeachEvanSongSnippets(EnTimeTag* this, PlayState* play) {
|
||||
if ((play->msgCtx.ocarinaStaff->state == 0) && (play->msgCtx.msgMode == 0x1B)) {
|
||||
if ((play->msgCtx.ocarinaStaff->state == 0) && (play->msgCtx.msgMode == MSGMODE_SONG_DEMONSTRATION_DONE)) {
|
||||
TIMETAG_DIARY_TIMER(&this->actor) = 5;
|
||||
this->actionFunc = EnTimeTag_Diary_AfterOcarina;
|
||||
play->msgCtx.msgLength = 0;
|
||||
play->msgCtx.msgMode = 0;
|
||||
play->msgCtx.msgMode = MSGMODE_NONE;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -217,13 +217,13 @@ void EnTimeTag_Diary_Cutscene(EnTimeTag* this, PlayState* play) {
|
||||
break;
|
||||
|
||||
case 0x122B: // Mikau diary part 1
|
||||
func_80152434(play, 0x3F);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_DEMONSTRATE_EVAN_PART1_SECOND_HALF);
|
||||
this->actionFunc = EnTimeTag_Diary_TeachEvanSongSnippets;
|
||||
TIMETAG_DIARY_SONG(&this->actor) = TIMETAG_DIARY_SONG_EVAN_PART1;
|
||||
break;
|
||||
|
||||
case 0x122E: // Mikau diary part 3
|
||||
func_80152434(play, 0x40);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_DEMONSTRATE_EVAN_PART2_SECOND_HALF);
|
||||
this->actionFunc = EnTimeTag_Diary_TeachEvanSongSnippets;
|
||||
TIMETAG_DIARY_SONG(&this->actor) = TIMETAG_DIARY_SONG_EVAN_PART2;
|
||||
break;
|
||||
|
||||
@@ -290,7 +290,7 @@ void func_80AECA3C(EnTk* this, PlayState* play) {
|
||||
|
||||
void func_80AECA90(EnTk* this, PlayState* play) {
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
play->msgCtx.msgMode = 0;
|
||||
play->msgCtx.msgMode = MSGMODE_NONE;
|
||||
play->msgCtx.msgLength = 0;
|
||||
func_80AEDE10(this, play);
|
||||
} else if (this->actor.xzDistToPlayer < 100.0f) {
|
||||
@@ -317,7 +317,7 @@ void func_80AECB6C(EnTk* this, PlayState* play) {
|
||||
|
||||
this->actor.textId = 0;
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
play->msgCtx.msgMode = 0;
|
||||
play->msgCtx.msgMode = MSGMODE_NONE;
|
||||
play->msgCtx.msgLength = 0;
|
||||
func_80AED4F8(this, play);
|
||||
return;
|
||||
@@ -691,7 +691,7 @@ void func_80AED940(EnTk* this, PlayState* play) {
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
this->unk_2CA &= ~0x80;
|
||||
this->actor.flags &= ~ACTOR_FLAG_10000;
|
||||
play->msgCtx.msgMode = 0;
|
||||
play->msgCtx.msgMode = MSGMODE_NONE;
|
||||
play->msgCtx.msgLength = 0;
|
||||
func_80AEDE10(this, play);
|
||||
} else if (!(this->unk_2CA & 0x80)) {
|
||||
@@ -874,7 +874,7 @@ void func_80AEDF5C(EnTk* this, PlayState* play) {
|
||||
this->unk_2CA |= 2;
|
||||
if (play->msgCtx.choiceIndex == 0) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
play->msgCtx.msgMode = 0x44;
|
||||
play->msgCtx.msgMode = MSGMODE_PAUSED;
|
||||
func_80AEE2A8(this, play);
|
||||
} else {
|
||||
Audio_PlaySfx_MessageCancel();
|
||||
|
||||
@@ -151,7 +151,12 @@ static Vec3s D_80BA510C[] = {
|
||||
{ 0xFF64, 0x0016, 0xFE7E },
|
||||
};
|
||||
|
||||
static u16 D_80BA5120[] = { 67, 68, 69, 70 };
|
||||
static u16 sOcarinaActionWindFishPrompts[] = {
|
||||
OCARINA_ACTION_PROMPT_WIND_FISH_HUMAN,
|
||||
OCARINA_ACTION_PROMPT_WIND_FISH_GORON,
|
||||
OCARINA_ACTION_PROMPT_WIND_FISH_ZORA,
|
||||
OCARINA_ACTION_PROMPT_WIND_FISH_DEKU,
|
||||
};
|
||||
|
||||
static u8 D_80BA5128[] = { 8, 4, 2, 1 };
|
||||
|
||||
@@ -542,12 +547,12 @@ s32 func_80BA4530(EnToto* this, PlayState* play) {
|
||||
|
||||
s32 func_80BA46D8(EnToto* this, PlayState* play) {
|
||||
func_800B7298(play, NULL, PLAYER_CSMODE_68);
|
||||
func_80152434(play, D_80BA5120[CUR_FORM]);
|
||||
Message_DisplayOcarinaStaff(play, sOcarinaActionWindFishPrompts[CUR_FORM]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
s32 func_80BA4740(EnToto* this, PlayState* play) {
|
||||
if (play->msgCtx.ocarinaMode == 4) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_END) {
|
||||
if (GET_PLAYER_FORM == PLAYER_FORM_HUMAN) {
|
||||
SET_WEEKEVENTREG(WEEKEVENTREG_56_10);
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ void EnTrt_EndInteraction(PlayState* play, EnTrt* this) {
|
||||
this->cutsceneState = ENTRT_CUTSCENESTATE_STOPPED;
|
||||
}
|
||||
Actor_ProcessTalkRequest(&this->actor, &play->state);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
this->drawCursor = 0;
|
||||
@@ -362,7 +362,7 @@ void EnTrt_GetMushroom(EnTrt* this, PlayState* play) {
|
||||
CutsceneManager_Stop(this->csId);
|
||||
this->cutsceneState = ENTRT_CUTSCENESTATE_STOPPED;
|
||||
}
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnTrt_PayForMushroom;
|
||||
break;
|
||||
@@ -412,7 +412,7 @@ void EnTrt_StartRedPotionConversation(EnTrt* this, PlayState* play) {
|
||||
CutsceneManager_Stop(this->csId);
|
||||
this->cutsceneState = ENTRT_CUTSCENESTATE_STOPPED;
|
||||
}
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnTrt_GiveRedPotionForKoume;
|
||||
} else {
|
||||
@@ -660,7 +660,7 @@ void EnTrt_SetupBuyItemWithFanfare(PlayState* play, EnTrt* this) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
Actor_OfferGetItem(&this->actor, play, this->items[this->cursorIndex]->getItemId, 300.0f, 300.0f);
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
player->stateFlags2 &= ~PLAYER_STATE2_20000000;
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_ALL);
|
||||
@@ -999,7 +999,7 @@ void EnTrt_TryToGiveRedPotion(EnTrt* this, PlayState* play) {
|
||||
CutsceneManager_Stop(this->csId);
|
||||
this->cutsceneState = ENTRT_CUTSCENESTATE_STOPPED;
|
||||
}
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->actionFunc = EnTrt_GiveRedPotionForKoume;
|
||||
} else {
|
||||
|
||||
@@ -347,7 +347,7 @@ void func_80AD3CEC(EnTrt2* this, PlayState* play) {
|
||||
Message_StartTextbox(play, this->unk_3A8, &this->actor);
|
||||
this->unk_3D8 = false;
|
||||
} else if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
EnTrt2_ChangeAnim(&this->skelAnime, sAnimationInfo, TRT2_ANIM_HOVER);
|
||||
this->unk_3B2 = 4;
|
||||
@@ -375,7 +375,7 @@ void func_80AD3DA4(EnTrt2* this, PlayState* play) {
|
||||
void func_80AD3E34(EnTrt2* this, PlayState* play) {
|
||||
if ((Message_GetState(&play->msgCtx) == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
if (Inventory_HasEmptyBottle()) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_3B2 = 12;
|
||||
} else {
|
||||
@@ -403,7 +403,7 @@ void func_80AD3EF0(EnTrt2* this, PlayState* play) {
|
||||
}
|
||||
}
|
||||
} else if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
this->unk_3B2 = 12;
|
||||
}
|
||||
@@ -447,7 +447,7 @@ void func_80AD417C(EnTrt2* this, PlayState* play) {
|
||||
func_80AD349C(this);
|
||||
func_80AD3DA4(this, play);
|
||||
} else {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
if (this->unk_3A8 == 0x84C) {
|
||||
EnTrt2_ChangeAnim(&this->skelAnime, sAnimationInfo, TRT2_ANIM_HOVER);
|
||||
@@ -529,7 +529,7 @@ void func_80AD4550(EnTrt2* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if ((talkState == TEXT_STATE_5) && Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -37,8 +37,10 @@ ActorInit En_Warp_tag_InitVars = {
|
||||
};
|
||||
|
||||
// this appears to be unused, as the code never accesses it in known vanilla cases
|
||||
// these unknown values get passed to a unknown z_message function
|
||||
u8 D_809C1000[] = { 0x28, 0x29, 0x2A, 0x2B, 0x2D, 0x2C, 0, 0 };
|
||||
u8 D_809C1000[] = {
|
||||
OCARINA_ACTION_CHECK_TIME, OCARINA_ACTION_CHECK_HEALING, OCARINA_ACTION_CHECK_EPONAS,
|
||||
OCARINA_ACTION_CHECK_SOARING, OCARINA_ACTION_CHECK_SUNS, OCARINA_ACTION_CHECK_STORMS,
|
||||
};
|
||||
|
||||
static InitChainEntry sInitChain[] = {
|
||||
ICHAIN_VEC3F(scale, 1, ICHAIN_CONTINUE),
|
||||
@@ -113,7 +115,7 @@ void EnWarpTag_Unused809C09A0(EnWarptag* this, PlayState* play) {
|
||||
// and I doubt its set externally by another actor, so I believe this is unused
|
||||
// might be a bug, they might have meant to set actor flag (0x2000 0000) up above but mistyped (0x200 0000)
|
||||
// also WARPTAG_GET_3C0 should always return 2C0 -> 0xF for all known in-game uses, which is OOB
|
||||
func_80152434(play, D_809C1000[WARPTAG_GET_3C0(&this->dyna.actor)]); // unk message function
|
||||
Message_DisplayOcarinaStaff(play, D_809C1000[WARPTAG_GET_3C0(&this->dyna.actor)]);
|
||||
this->actionFunc = EnWarpTag_Unused809C0A20;
|
||||
|
||||
} else {
|
||||
@@ -125,13 +127,13 @@ void EnWarpTag_Unused809C09A0(EnWarptag* this, PlayState* play) {
|
||||
* Unused ActionFunc: assigned by EnWarpTag_Unused809C09A0, no known variants use.
|
||||
*/
|
||||
void EnWarpTag_Unused809C0A20(EnWarptag* this, PlayState* play) {
|
||||
if (play->msgCtx.ocarinaMode == 9) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_STORMS) {
|
||||
func_800B7298(play, NULL, PLAYER_CSMODE_WAIT);
|
||||
this->actionFunc = EnWarpTag_RespawnPlayer;
|
||||
CutsceneManager_Stop(CutsceneManager_GetCurrentCsId());
|
||||
|
||||
} else if (play->msgCtx.ocarinaMode >= 2) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
} else if (play->msgCtx.ocarinaMode >= OCARINA_MODE_WARP) {
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
this->actionFunc = EnWarpTag_Unused809C09A0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -497,7 +497,7 @@ void EnWeatherTag_Update(Actor* thisx, PlayState* play) {
|
||||
EnWeatherTag* this = THIS;
|
||||
|
||||
this->actionFunc(this, play);
|
||||
if ((play->actorCtx.flags & ACTORCTX_FLAG_1) && (play->msgCtx.msgMode != 0) &&
|
||||
if ((play->actorCtx.flags & ACTORCTX_FLAG_1) && (play->msgCtx.msgMode != MSGMODE_NONE) &&
|
||||
(play->msgCtx.currentTextId == 0x5E6) && !FrameAdvance_IsEnabled(&play->state) &&
|
||||
(play->transitionTrigger == TRANS_TRIGGER_OFF) && (CutsceneManager_GetCurrentCsId() == CS_ID_NONE) &&
|
||||
(play->csCtx.state == CS_STATE_IDLE)) {
|
||||
|
||||
@@ -358,7 +358,7 @@ void EnYb_Idle(EnYb* this, PlayState* play) {
|
||||
|
||||
EnYb_UpdateAnimation(this, play);
|
||||
if ((this->actor.xzDistToPlayer < 180.0f) && (fabsf(this->actor.playerHeightRel) < 50.0f) &&
|
||||
(play->msgCtx.ocarinaMode == 3) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING) &&
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING) &&
|
||||
(GET_PLAYER_FORM == PLAYER_FORM_HUMAN)) {
|
||||
this->actionFunc = EnYb_TeachingDance;
|
||||
this->teachingCutsceneTimer = 200;
|
||||
|
||||
@@ -268,7 +268,7 @@ void func_80B9FC70(EnZob* this, s16 csIdIndex) {
|
||||
|
||||
void func_80B9FCA0(EnZob* this, PlayState* play) {
|
||||
Message_CloseTextbox(play);
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
func_80B9FC0C(this);
|
||||
this->unk_2F4 &= ~1;
|
||||
this->actionFunc = func_80BA0728;
|
||||
@@ -315,7 +315,7 @@ void func_80B9FE1C(EnZob* this, PlayState* play) {
|
||||
|
||||
void func_80B9FE5C(EnZob* this, PlayState* play) {
|
||||
func_80B9F86C(this);
|
||||
if (play->msgCtx.ocarinaMode == 3) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) {
|
||||
play->msgCtx.msgLength = 0;
|
||||
this->actionFunc = func_80B9FDDC;
|
||||
func_80B9FC70(this, 0);
|
||||
@@ -331,7 +331,7 @@ void func_80B9FE5C(EnZob* this, PlayState* play) {
|
||||
void func_80B9FF20(EnZob* this, PlayState* play) {
|
||||
func_80B9F86C(this);
|
||||
if (Message_GetState(&play->msgCtx) == TEXT_STATE_7) {
|
||||
func_80152434(play, 0x42);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_PROMPT_EVAN_PART2_SECOND_HALF);
|
||||
this->actionFunc = func_80B9FE5C;
|
||||
func_80B9FC70(this, 2);
|
||||
}
|
||||
@@ -339,11 +339,11 @@ void func_80B9FF20(EnZob* this, PlayState* play) {
|
||||
|
||||
void func_80B9FF80(EnZob* this, PlayState* play) {
|
||||
func_80B9F86C(this);
|
||||
if (play->msgCtx.ocarinaMode == 3) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) {
|
||||
this->actionFunc = func_80B9FF20;
|
||||
this->unk_304 = 6;
|
||||
func_80B9F7E4(this, 1, ANIMMODE_LOOP);
|
||||
func_80152434(play, 0x3E);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_DEMONSTRATE_EVAN_PART2_FIRST_HALF);
|
||||
func_80B9FC70(this, 1);
|
||||
} else if (Message_GetState(&play->msgCtx) == TEXT_STATE_11) {
|
||||
play->msgCtx.msgLength = 0;
|
||||
@@ -357,7 +357,7 @@ void func_80B9FF80(EnZob* this, PlayState* play) {
|
||||
void func_80BA005C(EnZob* this, PlayState* play) {
|
||||
func_80B9F86C(this);
|
||||
if (Message_GetState(&play->msgCtx) == TEXT_STATE_7) {
|
||||
func_80152434(play, 0x41);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_PROMPT_EVAN_PART1_SECOND_HALF);
|
||||
this->actionFunc = func_80B9FF80;
|
||||
func_80B9FC70(this, 2);
|
||||
}
|
||||
@@ -426,7 +426,7 @@ void func_80BA00BC(EnZob* this, PlayState* play) {
|
||||
break;
|
||||
|
||||
case 0x1209:
|
||||
func_80152434(play, 0x3D);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_DEMONSTRATE_EVAN_PART1_FIRST_HALF);
|
||||
this->unk_304 = 4;
|
||||
func_80B9F7E4(this, 0, ANIMMODE_LOOP);
|
||||
this->actionFunc = func_80BA005C;
|
||||
@@ -439,7 +439,7 @@ void func_80BA00BC(EnZob* this, PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80BA0318(EnZob* this, PlayState* play) {
|
||||
func_80152434(play, 0x3D);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_DEMONSTRATE_EVAN_PART1_FIRST_HALF);
|
||||
this->unk_304 = 4;
|
||||
func_80B9F7E4(this, 0, ANIMMODE_LOOP);
|
||||
this->actionFunc = func_80BA005C;
|
||||
|
||||
@@ -627,7 +627,7 @@ void func_80B9451C(EnZog* this, PlayState* play) {
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
this->unk_300 = 2;
|
||||
this->actionFunc = func_80B94470;
|
||||
} else if ((play->msgCtx.ocarinaMode == 3) && (this->actor.xzDistToPlayer < 120.0f)) {
|
||||
} else if ((play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) && (this->actor.xzDistToPlayer < 120.0f)) {
|
||||
if ((play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING) && (GET_PLAYER_FORM == PLAYER_FORM_HUMAN)) {
|
||||
func_80B93BA8(this, 2);
|
||||
this->actionFunc = func_80B943C0;
|
||||
@@ -715,7 +715,7 @@ void func_80B948A8(EnZog* this, PlayState* play) {
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
this->unk_300 = 2;
|
||||
this->actionFunc = func_80B946FC;
|
||||
} else if ((play->msgCtx.ocarinaMode == 3) && (this->actor.xzDistToPlayer < 120.0f)) {
|
||||
} else if ((play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) && (this->actor.xzDistToPlayer < 120.0f)) {
|
||||
if ((play->msgCtx.lastPlayedSong == OCARINA_SONG_HEALING) && (GET_PLAYER_FORM == PLAYER_FORM_HUMAN)) {
|
||||
func_80B93BA8(this, 2);
|
||||
this->actionFunc = func_80B943C0;
|
||||
|
||||
@@ -555,8 +555,8 @@ void func_80BBBDE0(EnZos* this, PlayState* play) {
|
||||
|
||||
func_80BBB0D4(this, play);
|
||||
|
||||
if (play->msgCtx.ocarinaMode == 0x2A) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_PLAYED_FULL_EVAN_SONG) {
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
this->actionFunc = func_80BBBB84;
|
||||
this->actor.flags |= ACTOR_FLAG_10000;
|
||||
Actor_OfferTalk(&this->actor, play, 120.0f);
|
||||
|
||||
@@ -1146,7 +1146,7 @@ void func_80B98BF4(EnZot* this, PlayState* play) {
|
||||
|
||||
void func_80B98CA8(EnZot* this, PlayState* play) {
|
||||
if (func_800B8718(&this->actor, &play->state)) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
AudioOcarina_StartDefault(0xFFFF);
|
||||
this->actionFunc = func_80B98BF4;
|
||||
this->actor.flags |= ACTOR_FLAG_10000;
|
||||
|
||||
@@ -99,7 +99,7 @@ void func_80B3C4E0(ObjGhaka* this, PlayState* play) {
|
||||
|
||||
if (talkState == TEXT_STATE_5) {
|
||||
if (Message_ShouldAdvance(play)) {
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
func_80B3C260(this);
|
||||
}
|
||||
@@ -120,7 +120,7 @@ void func_80B3C4E0(ObjGhaka* this, PlayState* play) {
|
||||
|
||||
case 2:
|
||||
Audio_PlaySfx_MessageCancel();
|
||||
play->msgCtx.msgMode = 0x43;
|
||||
play->msgCtx.msgMode = MSGMODE_TEXT_CLOSING;
|
||||
play->msgCtx.stateTimer = 4;
|
||||
func_80B3C260(this);
|
||||
break;
|
||||
|
||||
@@ -203,7 +203,7 @@ void func_80AC9AB8(ObjOcarinalift* this) {
|
||||
|
||||
void func_80AC9AE0(ObjOcarinalift* this, PlayState* play) {
|
||||
if (func_800B8718(&this->dyna.actor, &play->state)) {
|
||||
func_80152434(play, 1);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_FREE_PLAY);
|
||||
func_80AC9B48(this);
|
||||
} else if (DynaPolyActor_IsPlayerOnTop(&this->dyna)) {
|
||||
func_800B8804(&this->dyna.actor, play, 40.0f);
|
||||
@@ -216,7 +216,7 @@ void func_80AC9B48(ObjOcarinalift* this) {
|
||||
|
||||
void func_80AC9B5C(ObjOcarinalift* this, PlayState* play) {
|
||||
if (func_800B886C(&this->dyna.actor, play)) {
|
||||
if (play->msgCtx.ocarinaMode == 4) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_END) {
|
||||
if (play->msgCtx.lastPlayedSong == 0) {
|
||||
if (OBJOCARINALIFT_GET_C(&this->dyna.actor) != OBJOCARINALIFT_PARAM_1) {
|
||||
Flags_SetSwitch(play, OBJOCARINALIFT_GET_SWITCH_FLAG(&this->dyna.actor));
|
||||
@@ -225,8 +225,8 @@ void func_80AC9B5C(ObjOcarinalift* this, PlayState* play) {
|
||||
func_80AC9C20(this);
|
||||
}
|
||||
} else {
|
||||
if (play->msgCtx.ocarinaMode >= 2) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
if (play->msgCtx.ocarinaMode >= OCARINA_MODE_WARP) {
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
func_80AC9AB8(this);
|
||||
}
|
||||
|
||||
@@ -897,7 +897,7 @@ s32 func_80B79734(PlayState* play, ObjUm* this, s32 arg2) {
|
||||
case TEXT_STATE_CHOICE:
|
||||
case TEXT_STATE_5:
|
||||
if (Message_ShouldAdvance(play) && func_80B795A0(play, this, arg2)) {
|
||||
msgCtx->msgMode = 0x43;
|
||||
msgCtx->msgMode = MSGMODE_TEXT_CLOSING;
|
||||
ret = true;
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -141,7 +141,7 @@ void ObjWarpstone_Update(Actor* thisx, PlayState* play) {
|
||||
} else if ((Message_GetState(&play->msgCtx) == TEXT_STATE_CHOICE) && Message_ShouldAdvance(play)) {
|
||||
if (play->msgCtx.choiceIndex != 0) {
|
||||
Audio_PlaySfx_MessageDecide();
|
||||
play->msgCtx.msgMode = 0x4D;
|
||||
play->msgCtx.msgMode = MSGMODE_OWL_SAVE_0;
|
||||
play->msgCtx.unk120D6 = 0;
|
||||
play->msgCtx.unk120D4 = 0;
|
||||
gSaveContext.save.owlSaveLocation = OBJ_WARPSTONE_GET_ID(&this->dyna.actor);
|
||||
|
||||
@@ -39,7 +39,8 @@ void func_808A7954(ObjWturn* this) {
|
||||
}
|
||||
|
||||
void func_808A7968(ObjWturn* this, PlayState* play) {
|
||||
if (play->msgCtx.ocarinaMode >= 28 && play->msgCtx.ocarinaMode < 39) {
|
||||
if ((play->msgCtx.ocarinaMode >= OCARINA_MODE_WARP_TO_GREAT_BAY_COAST) &&
|
||||
(play->msgCtx.ocarinaMode <= OCARINA_MODE_WARP_TO_ENTRANCE)) {
|
||||
Flags_UnsetSwitch(play, this->actor.params);
|
||||
Actor_Kill(&this->actor);
|
||||
return;
|
||||
|
||||
@@ -81,11 +81,12 @@ void OceffSpot_End(OceffSpot* this, PlayState* play) {
|
||||
} else {
|
||||
Actor_Kill(&this->actor);
|
||||
if ((R_TIME_SPEED != 400) && !play->msgCtx.blockSunsSong) {
|
||||
if ((play->msgCtx.ocarinaAction != 0x39) || (play->msgCtx.ocarinaMode != 0xA)) {
|
||||
if ((play->msgCtx.ocarinaAction != OCARINA_ACTION_CHECK_NOTIME_DONE) ||
|
||||
(play->msgCtx.ocarinaMode != OCARINA_MODE_PLAYED_SUNS)) {
|
||||
gSaveContext.sunsSongState = SUNSSONG_START;
|
||||
}
|
||||
} else {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -129,18 +129,18 @@ void ShotSun_TriggerFairy(ShotSun* this, PlayState* play) {
|
||||
void ShotSun_UpdateForOcarina(ShotSun* this, PlayState* play) {
|
||||
s32 type = SHOTSUN_GET_TYPE(&this->actor);
|
||||
|
||||
if (play->msgCtx.ocarinaMode == 3) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) {
|
||||
switch (play->msgCtx.lastPlayedSong) {
|
||||
case OCARINA_SONG_STORMS:
|
||||
if (type == SHOTSUN_FAIRY_SPAWNER_STORMS) {
|
||||
this->actionFunc = ShotSun_TriggerFairy;
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
break;
|
||||
case OCARINA_SONG_SUNS:
|
||||
if (type == SHOTSUN_FAIRY_SPAWNER_SUNS) {
|
||||
this->actionFunc = ShotSun_TriggerFairy;
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -16630,10 +16630,12 @@ void Player_Action_62(Player* this, PlayState* play) {
|
||||
s32 func_80851C40(PlayState* play, Player* this) {
|
||||
return ((play->sceneId == SCENE_MILK_BAR) && Audio_IsSequencePlaying(NA_BGM_BALLAD_OF_THE_WIND_FISH)) ||
|
||||
(((play->sceneId != SCENE_MILK_BAR) && (this->csMode == PLAYER_CSMODE_68)) ||
|
||||
((play->msgCtx.msgMode == 0x12) || (play->msgCtx.msgMode == 0x13) || (play->msgCtx.msgMode == 0x14) ||
|
||||
((play->msgCtx.ocarinaMode != 1) &&
|
||||
((this->csMode == PLAYER_CSMODE_5) || (play->msgCtx.ocarinaMode == 3) ||
|
||||
play->msgCtx.ocarinaAction == 0x32))));
|
||||
((play->msgCtx.msgMode == MSGMODE_SONG_PLAYED) ||
|
||||
(play->msgCtx.msgMode == MSGMODE_SETUP_DISPLAY_SONG_PLAYED) ||
|
||||
(play->msgCtx.msgMode == MSGMODE_DISPLAY_SONG_PLAYED) ||
|
||||
((play->msgCtx.ocarinaMode != OCARINA_MODE_ACTIVE) &&
|
||||
((this->csMode == PLAYER_CSMODE_5) || (play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) ||
|
||||
play->msgCtx.ocarinaAction == OCARINA_ACTION_FREE_PLAY_DONE))));
|
||||
}
|
||||
|
||||
// Deku playing the pipes? The loops both overwrite unk_AF0[0].y,z and unk_AF0[1].x,y,z
|
||||
@@ -16653,7 +16655,7 @@ void func_80851D30(PlayState* play, Player* this) {
|
||||
*var_s0 = sp50.x;
|
||||
var_s0++;
|
||||
}
|
||||
} else if (play->msgCtx.ocarinaMode == 1) {
|
||||
} else if (play->msgCtx.ocarinaMode == OCARINA_MODE_ACTIVE) {
|
||||
if (play->msgCtx.ocarinaButtonIndex != OCARINA_BTN_INVALID) {
|
||||
var_s0[play->msgCtx.ocarinaButtonIndex] = 1.2f;
|
||||
func_8082DB90(play, this, D_8085D190[this->transformation]);
|
||||
@@ -16738,7 +16740,7 @@ void func_808521E0(PlayState* play, Player* this) {
|
||||
}
|
||||
|
||||
func_80124618(D_801C0490, this->skelAnime.curFrame, &this->unk_AF0[1]);
|
||||
} else if (play->msgCtx.ocarinaMode == 1) {
|
||||
} else if (play->msgCtx.ocarinaMode == OCARINA_MODE_ACTIVE) {
|
||||
if (play->msgCtx.ocarinaButtonIndex != OCARINA_BTN_INVALID) {
|
||||
func_80851EC8(play, this);
|
||||
}
|
||||
@@ -16760,7 +16762,8 @@ void func_80852290(PlayState* play, Player* this) {
|
||||
s16 var_a1_3;
|
||||
s16 sp38;
|
||||
|
||||
if ((play->msgCtx.ocarinaMode == 1) && (play->msgCtx.ocarinaButtonIndex != OCARINA_BTN_INVALID)) {
|
||||
if ((play->msgCtx.ocarinaMode == OCARINA_MODE_ACTIVE) &&
|
||||
(play->msgCtx.ocarinaButtonIndex != OCARINA_BTN_INVALID)) {
|
||||
if ((this->unk_A90 != NULL) && (this->unk_A94 < 0.0f)) {
|
||||
this->unk_A90->flags |= ACTOR_FLAG_20000000;
|
||||
this->unk_A94 = 0.0f;
|
||||
@@ -16841,10 +16844,10 @@ void Player_Action_63(Player* this, PlayState* play) {
|
||||
((this->skelAnime.mode == 0) && (this->actionVar2 == 0)))) {
|
||||
func_808525C4(play, this);
|
||||
if (!(this->actor.flags & ACTOR_FLAG_20000000) || (this->unk_A90->id == ACTOR_EN_ZOT)) {
|
||||
func_80152434(play, 1);
|
||||
Message_DisplayOcarinaStaff(play, OCARINA_ACTION_FREE_PLAY);
|
||||
}
|
||||
} else if (this->actionVar2 != 0) {
|
||||
if (play->msgCtx.ocarinaMode == 4) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_END) {
|
||||
play->interfaceCtx.unk_222 = 0;
|
||||
CutsceneManager_Stop(play->playerCsIds[PLAYER_CS_ID_ITEM_OCARINA]);
|
||||
this->actor.flags &= ~ACTOR_FLAG_20000000;
|
||||
@@ -16860,12 +16863,15 @@ void Player_Action_63(Player* this, PlayState* play) {
|
||||
Player_AnimationPlayOnceReverse(play, this, D_8085D17C[this->transformation]);
|
||||
}
|
||||
} else {
|
||||
s32 var_v1 = (play->msgCtx.ocarinaMode >= 0x1C) && (play->msgCtx.ocarinaMode < 0x27);
|
||||
s32 var_v1 = (play->msgCtx.ocarinaMode >= OCARINA_MODE_WARP_TO_GREAT_BAY_COAST) &&
|
||||
(play->msgCtx.ocarinaMode <= OCARINA_MODE_WARP_TO_ENTRANCE);
|
||||
s32 pad[2];
|
||||
|
||||
if (var_v1 || (play->msgCtx.ocarinaMode == 0x16) || (play->msgCtx.ocarinaMode == 0x1A) ||
|
||||
(play->msgCtx.ocarinaMode == 0x18) || (play->msgCtx.ocarinaMode == 0x19)) {
|
||||
if (play->msgCtx.ocarinaMode == 0x16) {
|
||||
if (var_v1 || (play->msgCtx.ocarinaMode == OCARINA_MODE_APPLY_SOT) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_APPLY_DOUBLE_SOT) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_APPLY_INV_SOT_FAST) ||
|
||||
(play->msgCtx.ocarinaMode == OCARINA_MODE_APPLY_INV_SOT_SLOW)) {
|
||||
if (play->msgCtx.ocarinaMode == OCARINA_MODE_APPLY_SOT) {
|
||||
if (!func_8082DA90(play)) {
|
||||
if (gSaveContext.save.saveInfo.playerData.threeDayResetCount == 1) {
|
||||
play->nextEntrance = ENTRANCE(CUTSCENE, 1);
|
||||
@@ -16896,7 +16902,8 @@ void Player_Action_63(Player* this, PlayState* play) {
|
||||
Player_AnimationPlayOnceReverse(play, this, D_8085D17C[this->transformation]);
|
||||
}
|
||||
}
|
||||
} else if ((play->msgCtx.ocarinaMode == 3) && (play->msgCtx.lastPlayedSong == OCARINA_SONG_ELEGY)) {
|
||||
} else if ((play->msgCtx.ocarinaMode == OCARINA_MODE_EVENT) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_ELEGY)) {
|
||||
play->interfaceCtx.unk_222 = 0;
|
||||
CutsceneManager_Stop(play->playerCsIds[PLAYER_CS_ID_ITEM_OCARINA]);
|
||||
|
||||
@@ -18114,7 +18121,7 @@ void Player_Action_87(Player* this, PlayState* play) {
|
||||
|
||||
void Player_Action_88(Player* this, PlayState* play) {
|
||||
if (this->actionVar2++ > 90) {
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
func_8085B384(this, play);
|
||||
} else if (this->actionVar2 == 10) {
|
||||
func_80848640(play, this);
|
||||
@@ -19814,7 +19821,7 @@ void Player_CsAction_4(PlayState* play, Player* this, CsCmdActorCue* cue) {
|
||||
PlayerAnimation_Update(play, &this->skelAnime);
|
||||
if ((this->actor.id == ACTOR_EN_TEST3) && Animation_OnFrame(&this->skelAnime, 20.0f)) {
|
||||
this->getItemDrawIdPlusOne = GID_MASK_SUN + 1;
|
||||
Message_BombersNotebookQueueEvent(play, 0x1B);
|
||||
Message_BombersNotebookQueueEvent(play, BOMBERS_NOTEBOOK_EVENT_ESCAPED_SAKONS_HIDEOUT);
|
||||
Audio_PlayFanfare(NA_BGM_GET_NEW_MASK);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2799,10 +2799,14 @@ void KaleidoScope_UpdateOpening(PlayState* play) {
|
||||
}
|
||||
}
|
||||
|
||||
u16 sCursorPointsToOcarinaModes[] = {
|
||||
OCARINA_MODE_WARP_TO_GREAT_BAY_COAST, OCARINA_MODE_WARP_TO_ZORA_CAPE, OCARINA_MODE_WARP_TO_SNOWHEAD,
|
||||
OCARINA_MODE_WARP_TO_MOUNTAIN_VILLAGE, OCARINA_MODE_WARP_TO_SOUTH_CLOCK_TOWN, OCARINA_MODE_WARP_TO_MILK_ROAD,
|
||||
OCARINA_MODE_WARP_TO_WOODFALL, OCARINA_MODE_WARP_TO_SOUTHERN_SWAMP, OCARINA_MODE_WARP_TO_IKANA_CANYON,
|
||||
OCARINA_MODE_WARP_TO_STONE_TOWER,
|
||||
};
|
||||
|
||||
void KaleidoScope_Update(PlayState* play) {
|
||||
static u16 sCursorPointsToOcarinaModes[] = {
|
||||
28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
|
||||
};
|
||||
static s16 sUnpausedHudVisibility = HUD_VISIBILITY_IDLE;
|
||||
static s16 sNextMainState = PAUSE_MAIN_STATE_IDLE;
|
||||
static s16 sDelayTimer = 10;
|
||||
@@ -3484,7 +3488,7 @@ void KaleidoScope_Update(PlayState* play) {
|
||||
pauseCtx->state = PAUSE_STATE_OWLWARP_6;
|
||||
sPauseMenuVerticalOffset = -6240.0f;
|
||||
Audio_PlaySfx_PauseMenuOpenOrClose(SFX_PAUSE_MENU_CLOSE);
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
gSaveContext.prevHudVisibility = HUD_VISIBILITY_ALL;
|
||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_A)) {
|
||||
Audio_PlaySfx(NA_SE_SY_DECIDE);
|
||||
@@ -3498,7 +3502,7 @@ void KaleidoScope_Update(PlayState* play) {
|
||||
case PAUSE_STATE_OWLWARP_CONFIRM:
|
||||
if (CHECK_BTN_ALL(input->press.button, BTN_A)) {
|
||||
msgCtx->msgLength = 0;
|
||||
msgCtx->msgMode = 0;
|
||||
msgCtx->msgMode = MSGMODE_NONE;
|
||||
if (msgCtx->choiceIndex == 0) {
|
||||
func_8011552C(play, DO_ACTION_NONE);
|
||||
pauseCtx->state = PAUSE_STATE_OWLWARP_6;
|
||||
@@ -3513,17 +3517,17 @@ void KaleidoScope_Update(PlayState* play) {
|
||||
}
|
||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_B)) {
|
||||
msgCtx->msgLength = 0;
|
||||
msgCtx->msgMode = 0;
|
||||
msgCtx->msgMode = MSGMODE_NONE;
|
||||
pauseCtx->state = PAUSE_STATE_OWLWARP_SELECT;
|
||||
Audio_PlaySfx(NA_SE_SY_MESSAGE_PASS);
|
||||
} else if (CHECK_BTN_ALL(input->press.button, BTN_START)) {
|
||||
msgCtx->msgLength = 0;
|
||||
msgCtx->msgMode = 0;
|
||||
msgCtx->msgMode = MSGMODE_NONE;
|
||||
func_8011552C(play, DO_ACTION_NONE);
|
||||
pauseCtx->state = PAUSE_STATE_OWLWARP_6;
|
||||
sPauseMenuVerticalOffset = -6240.0f;
|
||||
Audio_PlaySfx_PauseMenuOpenOrClose(SFX_PAUSE_MENU_CLOSE);
|
||||
play->msgCtx.ocarinaMode = 4;
|
||||
play->msgCtx.ocarinaMode = OCARINA_MODE_END;
|
||||
gSaveContext.prevHudVisibility = HUD_VISIBILITY_ALL;
|
||||
}
|
||||
break;
|
||||
@@ -3598,7 +3602,7 @@ void KaleidoScope_Update(PlayState* play) {
|
||||
MsgEvent_SendNullTask();
|
||||
func_80143324(play, &play->skyboxCtx, play->skyboxId);
|
||||
|
||||
if ((msgCtx->msgMode != 0) && (msgCtx->currentTextId == 0xFF)) {
|
||||
if ((msgCtx->msgMode != MSGMODE_NONE) && (msgCtx->currentTextId == 0xFF)) {
|
||||
func_80115844(play, DO_ACTION_STOP);
|
||||
func_8011552C(play, DO_ACTION_STOP);
|
||||
Interface_SetHudVisibility(HUD_VISIBILITY_A_B_C);
|
||||
|
||||
+25
-25
@@ -2820,15 +2820,15 @@
|
||||
0x80147314:("func_80147314",),
|
||||
0x80147414:("func_80147414",),
|
||||
0x8014750C:("Sram_nop8014750C",),
|
||||
0x80147520:("func_80147520",),
|
||||
0x80147564:("func_80147564",),
|
||||
0x80147520:("Message_ResetOcarinaButtonAlphas",),
|
||||
0x80147564:("Message_ResetOcarinaButtonState",),
|
||||
0x80147624:("Message_ShouldAdvance",),
|
||||
0x80147734:("Message_ShouldAdvanceSilent",),
|
||||
0x801477B4:("Message_CloseTextbox",),
|
||||
0x80147818:("func_80147818",),
|
||||
0x80147818:("Message_DrawTextboxIcon",),
|
||||
0x80147F18:("func_80147F18",),
|
||||
0x80148558:("func_80148558",),
|
||||
0x80148B98:("func_80148B98",),
|
||||
0x80148B98:("Message_HandleChoiceSelection",),
|
||||
0x80148CBC:("func_80148CBC",),
|
||||
0x80148D64:("func_80148D64",),
|
||||
0x80149048:("func_80149048",),
|
||||
@@ -2836,43 +2836,43 @@
|
||||
0x80149454:("func_80149454",),
|
||||
0x801496C8:("func_801496C8",),
|
||||
0x8014995C:("Message_DrawTextChar",),
|
||||
0x80149C18:("func_80149C18",),
|
||||
0x80149C18:("Message_GrowTextbox",),
|
||||
0x80149EBC:("Message_FindMessage",),
|
||||
0x80149F74:("Message_DrawItemIcon",),
|
||||
0x8014AAD0:("Message_HandleOcarina",),
|
||||
0x8014ADBC:("func_8014ADBC",),
|
||||
0x8014ADBC:("Message_DrawTextDefault",),
|
||||
0x8014C70C:("Message_LoadItemIcon",),
|
||||
0x8014CC14:("Message_LoadChar",),
|
||||
0x8014CCB4:("func_8014CCB4",),
|
||||
0x8014CDF0:("func_8014CDF0",),
|
||||
0x8014CDF0:("Message_GetTimerDigits",),
|
||||
0x8014CFDC:("Message_SetupLoadItemIcon",),
|
||||
0x8014D304:("func_8014D304",),
|
||||
0x8014D62C:("func_8014D62C",),
|
||||
0x8014D7B4:("func_8014D7B4",),
|
||||
0x8014D304:("Message_LoadTime",),
|
||||
0x8014D62C:("Message_LoadOwlWarpText",),
|
||||
0x8014D7B4:("Message_Decode",),
|
||||
0x80150A84:("func_80150A84",),
|
||||
0x80150D08:("func_80150D08",),
|
||||
0x80150D08:("Message_OpenText",),
|
||||
0x801514B0:("func_801514B0",),
|
||||
0x801518B0:("Message_StartTextbox",),
|
||||
0x80151938:("Message_ContinueTextbox",),
|
||||
0x80151A68:("func_80151A68",),
|
||||
0x80151A68:("Message_DisplaySceneTitleCard",),
|
||||
0x80151BB4:("Message_BombersNotebookQueueEvent",),
|
||||
0x80151C9C:("func_80151C9C",),
|
||||
0x80151DA4:("func_80151DA4",),
|
||||
0x80152434:("func_80152434",),
|
||||
0x80152464:("func_80152464",),
|
||||
0x80151C9C:("Message_BombersNotebookProcessEventQueue",),
|
||||
0x80151DA4:("Message_DisplayOcarinaStaffImpl",),
|
||||
0x80152434:("Message_DisplayOcarinaStaff",),
|
||||
0x80152464:("Message_DisplayOcarinaStaffBlockSunsSong",),
|
||||
0x80152498:("Message_GetState",),
|
||||
0x8015268C:("func_8015268C",),
|
||||
0x80152C64:("func_80152C64",),
|
||||
0x8015268C:("Message_DrawTextBox",),
|
||||
0x80152C64:("Message_SetView",),
|
||||
0x80152CAC:("func_80152CAC",),
|
||||
0x80152EC0:("func_80152EC0",),
|
||||
0x80152FB8:("func_80152FB8",),
|
||||
0x80153750:("func_80153750",),
|
||||
0x80153E7C:("func_80153E7C",),
|
||||
0x80153EF0:("func_80153EF0",),
|
||||
0x801541D4:("func_801541D4",),
|
||||
0x80152EC0:("Message_SpawnSongEffect",),
|
||||
0x80152FB8:("Message_FlashOcarinaButtons",),
|
||||
0x80153750:("Message_DrawOcarinaButtons",),
|
||||
0x80153E7C:("Message_DrawText",),
|
||||
0x80153EF0:("Message_DrawSceneTitleCard",),
|
||||
0x801541D4:("Message_DrawMain",),
|
||||
0x80156758:("Message_Draw",),
|
||||
0x8015680C:("Message_Update",),
|
||||
0x801586A4:("func_801586A4",),
|
||||
0x801586A4:("Message_SetTables",),
|
||||
0x801586D4:("Message_Init",),
|
||||
0x801588D0:("Message_FindMessageNES",),
|
||||
0x80158988:("Message_LoadCharNES",),
|
||||
|
||||
+71
-101
@@ -1941,44 +1941,34 @@
|
||||
0x801C6A50:("D_801C6A50","UNK_TYPE1","",0x1),
|
||||
0x801C6A58:("D_801C6A58","UNK_TYPE1","",0x1),
|
||||
0x801C6A70:("D_801C6A70","UNK_TYPE1","",0x1),
|
||||
0x801C6A74:("D_801C6A74","UNK_TYPE2","",0x2),
|
||||
0x801C6A78:("D_801C6A78","UNK_TYPE2","",0x2),
|
||||
0x801C6A7C:("D_801C6A7C","UNK_TYPE2","",0x2),
|
||||
0x801C6A80:("D_801C6A80","UNK_TYPE2","",0x2),
|
||||
0x801C6A84:("D_801C6A84","UNK_TYPE2","",0x2),
|
||||
0x801C6A88:("D_801C6A88","UNK_TYPE2","",0x2),
|
||||
0x801C6A8C:("D_801C6A8C","UNK_TYPE2","",0x2),
|
||||
0x801C6A90:("D_801C6A90","UNK_TYPE2","",0x2),
|
||||
0x801C6A74:("sOcarinaButtonIndexBufPos","UNK_TYPE2","",0x2),
|
||||
0x801C6A78:("sOcarinaButtonIndexBufLen","UNK_TYPE2","",0x2),
|
||||
0x801C6A7C:("sLastPlayedSong","UNK_TYPE2","",0x2),
|
||||
0x801C6A80:("sOcarinaButtonStepR","UNK_TYPE2","",0x2),
|
||||
0x801C6A84:("sOcarinaButtonStepG","UNK_TYPE2","",0x2),
|
||||
0x801C6A88:("sOcarinaButtonStepB","UNK_TYPE2","",0x2),
|
||||
0x801C6A8C:("sOcarinaButtonFlashTimer","UNK_TYPE2","",0x2),
|
||||
0x801C6A90:("sOcarinaButtonFlashColorIndex","UNK_TYPE2","",0x2),
|
||||
0x801C6A94:("D_801C6A94","UNK_TYPE2","",0x2),
|
||||
0x801C6A98:("gPageSwitchNextButtonStatus","UNK_TYPE1","",0x1),
|
||||
0x801C6AB8:("sBombersNotebookEventMessages","UNK_TYPE1","",0x1),
|
||||
0x801C6B28:("gBombersNotebookWeekEventFlags","UNK_TYPE1","",0x1),
|
||||
0x801C6B98:("D_801C6B98","UNK_TYPE1","",0x1),
|
||||
0x801CED40:("D_801CED40","UNK_TYPE1","",0x1),
|
||||
0x801CFB08:("D_801CFB08","UNK_TYPE1","",0x1),
|
||||
0x801CFC78:("D_801CFC78","UNK_TYPE2","",0x2),
|
||||
0x801CFC7A:("D_801CFC7A","UNK_TYPE1","",0x1),
|
||||
0x801CFC7C:("D_801CFC7C","UNK_TYPE1","",0x1),
|
||||
0x801CFC7E:("D_801CFC7E","UNK_TYPE1","",0x1),
|
||||
0x801CFC84:("D_801CFC84","UNK_TYPE1","",0x1),
|
||||
0x801CFC88:("D_801CFC88","UNK_TYPE1","",0x1),
|
||||
0x801CFC8C:("D_801CFC8C","UNK_TYPE1","",0x1),
|
||||
0x801CFC8E:("D_801CFC8E","UNK_TYPE1","",0x1),
|
||||
0x801CFC92:("D_801CFC92","UNK_TYPE1","",0x1),
|
||||
0x801CFC98:("D_801CFC98","UNK_TYPE1","",0x1),
|
||||
0x801CFCA4:("D_801CFCA4","UNK_TYPE2","",0x2),
|
||||
0x801CFCAC:("D_801CFCAC","UNK_TYPE2","",0x2),
|
||||
0x801CFC78:("D_801CFC78","s16","[15]",0x1E),
|
||||
0x801CFC98:("sOcarinaButtonIndexBuf","UNK_TYPE1","",0x1),
|
||||
0x801CFCA4:("sOcarinaButtonAlphaValues","UNK_TYPE2","",0x2),
|
||||
0x801CFCB8:("gOcarinaSongItemMap","UNK_TYPE1","",0x1),
|
||||
0x801CFCD8:("D_801CFCD8","UNK_TYPE2","",0x2),
|
||||
0x801CFCE4:("D_801CFCE4","UNK_TYPE2","",0x2),
|
||||
0x801CFCF0:("D_801CFCF0","UNK_TYPE2","",0x2),
|
||||
0x801CFCF4:("D_801CFCF4","UNK_TYPE2","",0x2),
|
||||
0x801CFCF8:("D_801CFCF8","UNK_TYPE2","",0x2),
|
||||
0x801CFCFC:("D_801CFCFC","UNK_TYPE2","",0x2),
|
||||
0x801CFD00:("D_801CFD00","UNK_TYPE2","",0x2),
|
||||
0x801CFD04:("D_801CFD04","UNK_TYPE2","",0x2),
|
||||
0x801CFD08:("D_801CFD08","UNK_TYPE2","",0x2),
|
||||
0x801CFD0C:("D_801CFD0C","UNK_TYPE2","",0x2),
|
||||
0x801CFCD8:("sIconPrimColors","UNK_TYPE2","",0x2),
|
||||
0x801CFCE4:("sIconEnvColors","UNK_TYPE2","",0x2),
|
||||
0x801CFCF0:("sIconPrimR","UNK_TYPE2","",0x2),
|
||||
0x801CFCF4:("sIconPrimG","UNK_TYPE2","",0x2),
|
||||
0x801CFCF8:("sIconPrimB","UNK_TYPE2","",0x2),
|
||||
0x801CFCFC:("sIconFlashTimer","UNK_TYPE2","",0x2),
|
||||
0x801CFD00:("sIconFlashColorIndex","UNK_TYPE2","",0x2),
|
||||
0x801CFD04:("sIconEnvR","UNK_TYPE2","",0x2),
|
||||
0x801CFD08:("sIconEnvG","UNK_TYPE2","",0x2),
|
||||
0x801CFD0C:("sIconEnvB","UNK_TYPE2","",0x2),
|
||||
0x801CFD10:("D_801CFD10","UNK_TYPE2","",0x2),
|
||||
0x801CFD1C:("D_801CFD1C","UNK_TYPE2","",0x2),
|
||||
0x801CFD28:("D_801CFD28","UNK_TYPE2","",0x2),
|
||||
@@ -1999,24 +1989,24 @@
|
||||
0x801CFD74:("D_801CFD74","UNK_TYPE2","",0x2),
|
||||
0x801CFD78:("D_801CFD78","UNK_TYPE2","",0x2),
|
||||
0x801CFD7C:("D_801CFD7C","UNK_TYPE2","",0x2),
|
||||
0x801CFD80:("D_801CFD80","UNK_TYPE2","",0x2),
|
||||
0x801CFD84:("D_801CFD84","UNK_TYPE2","",0x2),
|
||||
0x801CFD88:("D_801CFD88","UNK_TYPE2","",0x2),
|
||||
0x801CFD8C:("D_801CFD8C","UNK_TYPE2","",0x2),
|
||||
0x801CFD90:("D_801CFD90","UNK_TYPE2","",0x2),
|
||||
0x801CFD94:("D_801CFD94","UNK_PTR","",0x4),
|
||||
0x801CFD98:("D_801CFD98","UNK_TYPE2","",0x2),
|
||||
0x801CFD9C:("D_801CFD9C","UNK_TYPE2","",0x2),
|
||||
0x801CFDA0:("D_801CFDA0","UNK_TYPE2","",0x2),
|
||||
0x801CFD80:("sAnalogStickHeld","UNK_TYPE2","",0x2),
|
||||
0x801CFD84:("sAnalogStickHeld","UNK_TYPE2","",0x2),
|
||||
0x801CFD88:("sAnalogStickHeld","UNK_TYPE2","",0x2),
|
||||
0x801CFD8C:("sAnalogStickHeld","UNK_TYPE2","",0x2),
|
||||
0x801CFD90:("sAnalogStickHeld","UNK_TYPE2","",0x2),
|
||||
0x801CFD94:("sTextboxWidth","UNK_PTR","",0x4),
|
||||
0x801CFD98:("sTextboxHeight","UNK_TYPE2","",0x2),
|
||||
0x801CFD9C:("sTextboxTexWidth","UNK_TYPE2","",0x2),
|
||||
0x801CFDA0:("sTextboxTexHeight","UNK_TYPE2","",0x2),
|
||||
0x801CFDA4:("D_801CFDA4","UNK_TYPE1","",0x1),
|
||||
0x801CFDC8:("D_801CFDC8","UNK_TYPE1","",0x1),
|
||||
0x801CFDEC:("D_801CFDEC","UNK_TYPE1","",0x1),
|
||||
0x801CFE04:("D_801CFE04","UNK_TYPE1","",0x1),
|
||||
0x801CFE1C:("D_801CFE1C","UNK_TYPE1","",0x1),
|
||||
0x801CFE34:("D_801CFE34","UNK_TYPE1","",0x1),
|
||||
0x801CFE4C:("D_801CFE4C","UNK_TYPE1","",0x1),
|
||||
0x801CFE5C:("D_801CFE5C","UNK_TYPE1","",0x1),
|
||||
0x801CFE68:("D_801CFE68","UNK_TYPE1","",0x1),
|
||||
0x801CFE4C:("sStrayFairyIconTextures","UNK_TYPE1","",0x1),
|
||||
0x801CFE5C:("sStrayFairyIconPrimColors","UNK_TYPE1","",0x1),
|
||||
0x801CFE68:("sStrayFairyIconEnvColors","UNK_TYPE1","",0x1),
|
||||
0x801CFE74:("D_801CFE74","UNK_TYPE1","",0x1),
|
||||
0x801CFEA4:("D_801CFEA4","UNK_TYPE1","",0x1),
|
||||
0x801CFED4:("D_801CFED4","UNK_TYPE1","",0x1),
|
||||
@@ -2027,59 +2017,38 @@
|
||||
0x801CFF7C:("D_801CFF7C","UNK_TYPE1","",0x1),
|
||||
0x801CFF88:("D_801CFF88","UNK_TYPE1","",0x1),
|
||||
0x801CFF94:("D_801CFF94","UNK_TYPE1","",0x1),
|
||||
0x801D0000:("D_801D0000","UNK_TYPE1","",0x1),
|
||||
0x801D0001:("D_801D0001","UNK_TYPE1","",0x1),
|
||||
0x801D001F:("D_801D001F","UNK_TYPE1","",0x1),
|
||||
0x801D0188:("D_801D0188","UNK_TYPE1","",0x1),
|
||||
0x801D023A:("D_801D023A","UNK_TYPE1","",0x1),
|
||||
0x801D0250:("D_801D0250","UNK_TYPE1","",0x1),
|
||||
0x801D0188:("sOwlWarpTextJPN","UNK_TYPE1","",0x1),
|
||||
0x801D0250:("sOwlWarpTextLengthJPN","UNK_TYPE1","",0x1),
|
||||
0x801D0268:("D_801D0268","UNK_TYPE2","",0x2),
|
||||
0x801D027C:("D_801D027C","UNK_TYPE1","",0x1),
|
||||
0x801D0284:("D_801D0284","UNK_TYPE1","",0x1),
|
||||
0x801D028C:("D_801D028C","UNK_TYPE1","",0x1),
|
||||
0x801D02C0:("D_801D02C0","UNK_TYPE1","",0x1),
|
||||
0x801D02D8:("D_801D02D8","UNK_TYPE1","",0x1),
|
||||
0x801D02F8:("D_801D02F8","UNK_TYPE1","",0x1),
|
||||
0x801D02C0:("sOcarinaSongFlagsMap","UNK_TYPE1","",0x1),
|
||||
0x801D02D8:("sOcarinaEffectActorIds","UNK_TYPE1","",0x1),
|
||||
0x801D02F8:("sOcarinaEffectActorParams","UNK_TYPE1","",0x1),
|
||||
0x801D0330:("D_801D0330","UNK_TYPE1","",0x1),
|
||||
0x801D0334:("D_801D0334","UNK_TYPE1","",0x1),
|
||||
0x801D0340:("D_801D0340","UNK_TYPE1","",0x1),
|
||||
0x801D034C:("D_801D034C","UNK_TYPE1","",0x1),
|
||||
0x801D0358:("D_801D0358","UNK_TYPE1","",0x1),
|
||||
0x801D0364:("D_801D0364","UNK_TYPE1","",0x1),
|
||||
0x801D0378:("D_801D0378","UNK_TYPE1","",0x1),
|
||||
0x801D039C:("D_801D039C","UNK_TYPE1","",0x8),
|
||||
0x801D03A4:("D_801D03A4","UNK_TYPE1","",0x1),
|
||||
0x801D0334:("sOcarinaButtonAPrimColors","UNK_TYPE1","",0x1),
|
||||
0x801D0340:("sOcarinaButtonAEnvColors","UNK_TYPE1","",0x1),
|
||||
0x801D034C:("sOcarinaButtonCPrimColors","UNK_TYPE1","",0x1),
|
||||
0x801D0358:("sOcarinaButtonCEnvColors","UNK_TYPE1","",0x1),
|
||||
0x801D0364:("sOcarinaButtonTextures","UNK_TYPE1","",0x1),
|
||||
0x801D0378:("sOcarinaSongFanfares","UNK_TYPE1","",0x1),
|
||||
0x801D039C:("sOcarinaSongFanfareIoData","UNK_TYPE1","",0x8),
|
||||
0x801D03A4:("sPlayerFormOcarinaInstruments","UNK_TYPE1","",0x1),
|
||||
0x801D03A8:("D_801D03A8","UNK_TYPE1","",0x1),
|
||||
0x801D03C8:("D_801D03C8","UNK_TYPE1","",0x1),
|
||||
0x801D03E8:("D_801D03E8","UNK_TYPE1","",0x1),
|
||||
0x801D03F0:("D_801D03F0","UNK_TYPE1","",0x1),
|
||||
0x801D0408:("D_801D0408","UNK_TYPE1","",0x1),
|
||||
0x801D0428:("D_801D0428","UNK_TYPE1","",0x1),
|
||||
0x801D045A:("D_801D045A","UNK_TYPE1","",0x1),
|
||||
0x801D0462:("D_801D0462","UNK_TYPE1","",0x1),
|
||||
0x801D03C8:("sTextboxXPositions","UNK_TYPE1","",0x20),
|
||||
0x801D03E8:("sTextboxLowerYPositions","UNK_TYPE1","",0x20),
|
||||
0x801D0408:("sTextboxUpperYPositions","UNK_TYPE1","",0x1),
|
||||
0x801D0428:("sTextboxMidYPositions","UNK_TYPE1","",0x1),
|
||||
0x801D0448:("D_801D0448","s16","[10]",0x14),
|
||||
0x801D045C:("D_801D045C","s16","[3]",0x8),
|
||||
0x801D0464:("D_801D0464","s16","[2]",0x4),
|
||||
0x801D0468:("D_801D0468","UNK_TYPE1","",0x1),
|
||||
0x801D0470:("sNESFontWidths","UNK_TYPE1","",0x1),
|
||||
0x801D06F0:("sRupeesTextLocalization","char","[]",0x18),
|
||||
0x801D0708:("D_801D0708","char","[]",1),
|
||||
0x801D0710:("sRupeesTextLength","UNK_TYPE1","",0x1),
|
||||
0x801D0714:("D_801D0714","char","[]",0x1),
|
||||
0x801D0724:("D_801D0724","char","[]",0x1),
|
||||
0x801D0730:("D_801D0730","char","[]",0x1),
|
||||
0x801D0734:("D_801D0734","char","[]",0x1),
|
||||
0x801D0740:("D_801D0740","char","[]",0x1),
|
||||
0x801D0744:("D_801D0744","char","[]",0x1),
|
||||
0x801D0760:("D_801D0760","char","[]",0x1),
|
||||
0x801D0764:("D_801D0764","char","[]",0x1),
|
||||
0x801D0770:("D_801D0770","char","[]",0x1),
|
||||
0x801D0774:("D_801D0774","char","[]",0x1),
|
||||
0x801D0780:("D_801D0780","char","[]",0x1),
|
||||
0x801D0784:("D_801D0784","char","[]",0x1),
|
||||
0x801D0794:("D_801D0794","char","[]",0x1),
|
||||
0x801D07A4:("D_801D07A4","char","[]",0x1),
|
||||
0x801D07B0:("D_801D07B0","char","[]",0x1),
|
||||
0x801D07B4:("D_801D07B4","char","[]",0x1),
|
||||
0x801D07C0:("D_801D07C0","char","[]",0x1),
|
||||
0x801D07C4:("D_801D07C4","UNK_TYPE1","",0x1),
|
||||
0x801D0714:("sOwlWarpTextENG","char","[]",0xB0),
|
||||
0x801D07C4:("sOwlWarpTextLengthENG","UNK_TYPE1","",0x16),
|
||||
0x801D07DC:("D_801D07DC","UNK_TYPE1","",0x1),
|
||||
0x801D080C:("D_801D080C","UNK_TYPE1","",0x1),
|
||||
0x801D083C:("D_801D083C","UNK_TYPE1","",0x1),
|
||||
@@ -2090,6 +2059,7 @@
|
||||
0x801D08E4:("D_801D08E4","UNK_TYPE1","",0x1),
|
||||
0x801D08E8:("sMaskCodeTextENG","UNK_TYPE1","",0x1),
|
||||
0x801D0900:("sMaskCodeTextLengthENG","UNK_TYPE1","",0x1),
|
||||
0x801D0910:("sCreditsFontWidths","f32","[]",0x1),
|
||||
0x801D0B50:("Player_InitVars","ActorInit","",0x20),
|
||||
0x801D0B70:("gKaleidoMgrOverlayTable","KaleidoMgrOverlay","",0x38),
|
||||
0x801D0BA8:("sKaleidoAreaPtr","void*","",0x4),
|
||||
@@ -3982,21 +3952,21 @@
|
||||
0x801F6AE0:("sSkyboxDrawMatrix","Mtx*","",0x4),
|
||||
0x801F6AF0:("D_801F6AF0","UNK_TYPE1","",0x1),
|
||||
0x801F6AF2:("D_801F6AF2","UNK_TYPE1","",0x1),
|
||||
0x801F6B00:("D_801F6B00","UNK_TYPE4","",0x4),
|
||||
0x801F6B04:("D_801F6B04","UNK_TYPE4","",0x4),
|
||||
0x801F6B00:("sCharTexSize","UNK_TYPE4","",0x4),
|
||||
0x801F6B04:("sCharTexScale","UNK_TYPE4","",0x4),
|
||||
0x801F6B08:("D_801F6B08","UNK_TYPE4","",0x4),
|
||||
0x801F6B0C:("D_801F6B0C","UNK_TYPE1","",0x1),
|
||||
0x801F6B0E:("D_801F6B0E","UNK_TYPE1","",0x1),
|
||||
0x801F6B10:("D_801F6B10","UNK_TYPE1","",0x1),
|
||||
0x801F6B12:("D_801F6B12","UNK_TYPE1","",0x1),
|
||||
0x801F6B14:("D_801F6B14","UNK_TYPE1","",0x1),
|
||||
0x801F6B16:("D_801F6B16","UNK_TYPE1","",0x1),
|
||||
0x801F6B18:("D_801F6B18","UNK_TYPE1","",0x1),
|
||||
0x801F6B1A:("D_801F6B1A","UNK_TYPE1","",0x1),
|
||||
0x801F6B1C:("D_801F6B1C","UNK_TYPE1","",0x1),
|
||||
0x801F6B1E:("D_801F6B1E","UNK_TYPE1","",0x1),
|
||||
0x801F6B20:("D_801F6B20","UNK_TYPE1","",0x1),
|
||||
0x801F6B22:("D_801F6B22","UNK_TYPE1","",0x1),
|
||||
0x801F6B0C:("sOcarinaButtonAPrimR","UNK_TYPE1","",0x1),
|
||||
0x801F6B0E:("sOcarinaButtonAPrimB","UNK_TYPE1","",0x1),
|
||||
0x801F6B10:("sOcarinaButtonAPrimG","UNK_TYPE1","",0x1),
|
||||
0x801F6B12:("sOcarinaButtonAEnvR","UNK_TYPE1","",0x1),
|
||||
0x801F6B14:("sOcarinaButtonAEnvB","UNK_TYPE1","",0x1),
|
||||
0x801F6B16:("sOcarinaButtonAEnvG","UNK_TYPE1","",0x1),
|
||||
0x801F6B18:("sOcarinaButtonCPrimR","UNK_TYPE1","",0x1),
|
||||
0x801F6B1A:("sOcarinaButtonCPrimB","UNK_TYPE1","",0x1),
|
||||
0x801F6B1C:("sOcarinaButtonCPrimG","UNK_TYPE1","",0x1),
|
||||
0x801F6B1E:("sOcarinaButtonCEnvR","UNK_TYPE1","",0x1),
|
||||
0x801F6B20:("sOcarinaButtonCEnvB","UNK_TYPE1","",0x1),
|
||||
0x801F6B22:("sOcarinaButtonCEnvG","UNK_TYPE1","",0x1),
|
||||
0x801F6B30:("sPlayerCallInitFunc","UNK_TYPE1","",0x1),
|
||||
0x801F6B34:("sPlayerCallDestroyFunc","UNK_TYPE1","",0x1),
|
||||
0x801F6B38:("sPlayerCallUpdateFunc","UNK_TYPE1","",0x1),
|
||||
@@ -15291,7 +15261,7 @@
|
||||
0x80BA50BC:("D_80BA50BC","UNK_TYPE1","",0x1),
|
||||
0x80BA50DC:("D_80BA50DC","UNK_TYPE1","",0x1),
|
||||
0x80BA510C:("D_80BA510C","UNK_TYPE1","",0x1),
|
||||
0x80BA5120:("D_80BA5120","UNK_TYPE2","",0x2),
|
||||
0x80BA5120:("sOcarinaActionWindFishPrompts","UNK_TYPE2","",0x2),
|
||||
0x80BA5128:("D_80BA5128","UNK_TYPE1","",0x1),
|
||||
0x80BA512C:("D_80BA512C","UNK_PTR","",0x4),
|
||||
0x80BA5174:("D_80BA5174","UNK_PTR","",0x4),
|
||||
|
||||
+1
-1
@@ -1104,7 +1104,7 @@ wordReplace = {
|
||||
"play->msgCtx.unk12023": "play->msgCtx.stateTimer",
|
||||
"play->msgCtx.unk1202A": "play->msgCtx.ocarinaMode",
|
||||
"play->msgCtx.unk1202C": "play->msgCtx.ocarinaAction",
|
||||
"play->msgCtx.unk12048": "play->msgCtx.lastOcarinaButtonIndex",
|
||||
"play->msgCtx.unk12048": "play->msgCtx.ocarinaButtonIndex",
|
||||
"play->msgCtx.unk120B0": "play->msgCtx.ocarinaSongEffectActive",
|
||||
"play->msgCtx.unk12046": "play->msgCtx.blockSunsSong",
|
||||
"play->msgCtx.unk12090": "play->msgCtx.textIsCredits",
|
||||
|
||||
@@ -2334,59 +2334,59 @@ asm/non_matchings/code/z_sram_NES/Sram_UpdateWriteToFlashOwlSave.s,Sram_UpdateWr
|
||||
asm/non_matchings/code/z_sram_NES/func_80147314.s,func_80147314,0x80147314,0x40
|
||||
asm/non_matchings/code/z_sram_NES/func_80147414.s,func_80147414,0x80147414,0x3E
|
||||
asm/non_matchings/code/z_sram_NES/Sram_nop8014750C.s,Sram_nop8014750C,0x8014750C,0x5
|
||||
asm/non_matchings/code/z_message/func_80147520.s,func_80147520,0x80147520,0x11
|
||||
asm/non_matchings/code/z_message/func_80147564.s,func_80147564,0x80147564,0x30
|
||||
asm/non_matchings/code/z_message/Message_ResetOcarinaButtonAlphas.s,Message_ResetOcarinaButtonAlphas,0x80147520,0x11
|
||||
asm/non_matchings/code/z_message/Message_ResetOcarinaButtonState.s,Message_ResetOcarinaButtonState,0x80147564,0x30
|
||||
asm/non_matchings/code/z_message/Message_ShouldAdvance.s,Message_ShouldAdvance,0x80147624,0x44
|
||||
asm/non_matchings/code/z_message/Message_ShouldAdvanceSilent.s,Message_ShouldAdvanceSilent,0x80147734,0x20
|
||||
asm/non_matchings/code/z_message/Message_CloseTextbox.s,Message_CloseTextbox,0x801477B4,0x19
|
||||
asm/non_matchings/code/z_message/func_80147818.s,func_80147818,0x80147818,0x1C0
|
||||
asm/non_matchings/code/z_message/Message_DrawTextboxIcon.s,Message_DrawTextboxIcon,0x80147818,0x1C0
|
||||
asm/non_matchings/code/z_message/func_80147F18.s,func_80147F18,0x80147F18,0x190
|
||||
asm/non_matchings/code/z_message/func_80148558.s,func_80148558,0x80148558,0x190
|
||||
asm/non_matchings/code/z_message/func_80148B98.s,func_80148B98,0x80148B98,0x49
|
||||
asm/non_matchings/code/z_message/Message_HandleChoiceSelection.s,Message_HandleChoiceSelection,0x80148B98,0x49
|
||||
asm/non_matchings/code/z_message/func_80148CBC.s,func_80148CBC,0x80148CBC,0x2A
|
||||
asm/non_matchings/code/z_message/func_80148D64.s,func_80148D64,0x80148D64,0xB9
|
||||
asm/non_matchings/code/z_message/func_80149048.s,func_80149048,0x80149048,0x65
|
||||
asm/non_matchings/code/z_message/func_801491DC.s,func_801491DC,0x801491DC,0x9E
|
||||
asm/non_matchings/code/z_message/func_80149454.s,func_80149454,0x80149454,0x9D
|
||||
asm/non_matchings/code/z_message/func_801496C8.s,func_801496C8,0x801496C8,0xA5
|
||||
asm/non_matchings/code/z_message/func_8014995C.s,func_8014995C,0x8014995C,0xAF
|
||||
asm/non_matchings/code/z_message/Message_DrawItemIcon.s,Message_DrawItemIcon,0x80149C18,0xA9
|
||||
asm/non_matchings/code/z_message/Message_DrawTextChar.s,Message_DrawTextChar,0x8014995C,0xAF
|
||||
asm/non_matchings/code/z_message/Message_GrowTextbox.s,Message_GrowTextbox,0x80149C18,0xA9
|
||||
asm/non_matchings/code/z_message/Message_FindMessage.s,Message_FindMessage,0x80149EBC,0x2E
|
||||
asm/non_matchings/code/z_message/Message_DrawItemIcon.s,Message_DrawItemIcon,0x80149F74,0x2D7
|
||||
asm/non_matchings/code/z_message/func_8014AAD0.s,func_8014AAD0,0x8014AAD0,0xBB
|
||||
asm/non_matchings/code/z_message/func_8014ADBC.s,func_8014ADBC,0x8014ADBC,0x654
|
||||
asm/non_matchings/code/z_message/func_8014C70C.s,func_8014C70C,0x8014C70C,0x142
|
||||
asm/non_matchings/code/z_message/Message_HandleOcarina.s,Message_HandleOcarina,0x8014AAD0,0xBB
|
||||
asm/non_matchings/code/z_message/Message_DrawTextDefault.s,Message_DrawTextDefault,0x8014ADBC,0x654
|
||||
asm/non_matchings/code/z_message/Message_LoadItemIcon.s,Message_LoadItemIcon,0x8014C70C,0x142
|
||||
asm/non_matchings/code/z_message/Message_LoadChar.s,Message_LoadChar,0x8014CC14,0x28
|
||||
asm/non_matchings/code/z_message/func_8014CCB4.s,func_8014CCB4,0x8014CCB4,0x4F
|
||||
asm/non_matchings/code/z_message/func_8014CDF0.s,func_8014CDF0,0x8014CDF0,0x7B
|
||||
asm/non_matchings/code/z_message/Message_GetTimerDigits.s,Message_GetTimerDigits,0x8014CDF0,0x7B
|
||||
asm/non_matchings/code/z_message/Message_SetupLoadItemIcon.s,Message_SetupLoadItemIcon,0x8014CFDC,0xCA
|
||||
asm/non_matchings/code/z_message/func_8014D304.s,func_8014D304,0x8014D304,0xCA
|
||||
asm/non_matchings/code/z_message/func_8014D62C.s,func_8014D62C,0x8014D62C,0x62
|
||||
asm/non_matchings/code/z_message/func_8014D7B4.s,func_8014D7B4,0x8014D7B4,0xCB4
|
||||
asm/non_matchings/code/z_message/Message_LoadTime.s,Message_LoadTime,0x8014D304,0xCA
|
||||
asm/non_matchings/code/z_message/Message_LoadOwlWarpText.s,Message_LoadOwlWarpText,0x8014D62C,0x62
|
||||
asm/non_matchings/code/z_message/Message_Decode.s,Message_Decode,0x8014D7B4,0xCB4
|
||||
asm/non_matchings/code/z_message/func_80150A84.s,func_80150A84,0x80150A84,0xA1
|
||||
asm/non_matchings/code/z_message/func_80150D08.s,func_80150D08,0x80150D08,0x1EA
|
||||
asm/non_matchings/code/z_message/Message_OpenText.s,Message_OpenText,0x80150D08,0x1EA
|
||||
asm/non_matchings/code/z_message/func_801514B0.s,func_801514B0,0x801514B0,0x100
|
||||
asm/non_matchings/code/z_message/Message_StartTextbox.s,Message_StartTextbox,0x801518B0,0x22
|
||||
asm/non_matchings/code/z_message/Message_ContinueTextbox.s,Message_ContinueTextbox,0x80151938,0x4C
|
||||
asm/non_matchings/code/z_message/func_80151A68.s,func_80151A68,0x80151A68,0x53
|
||||
asm/non_matchings/code/z_message/Message_DisplaySceneTitleCard.s,Message_DisplaySceneTitleCard,0x80151A68,0x53
|
||||
asm/non_matchings/code/z_message/Message_BombersNotebookQueueEvent.s,Message_BombersNotebookQueueEvent,0x80151BB4,0x3A
|
||||
asm/non_matchings/code/z_message/func_80151C9C.s,func_80151C9C,0x80151C9C,0x42
|
||||
asm/non_matchings/code/z_message/func_80151DA4.s,func_80151DA4,0x80151DA4,0x1A4
|
||||
asm/non_matchings/code/z_message/func_80152434.s,func_80152434,0x80152434,0xC
|
||||
asm/non_matchings/code/z_message/func_80152464.s,func_80152464,0x80152464,0xD
|
||||
asm/non_matchings/code/z_message/Message_BombersNotebookProcessEventQueue.s,func_80151C9C,0x80151C9C,0x42
|
||||
asm/non_matchings/code/z_message/Message_DisplayOcarinaStaffImpl.s,Message_DisplayOcarinaStaffImpl,0x80151DA4,0x1A4
|
||||
asm/non_matchings/code/z_message/Message_DisplayOcarinaStaff.s,Message_DisplayOcarinaStaff,0x80152434,0xC
|
||||
asm/non_matchings/code/z_message/Message_DisplayOcarinaStaffBlockSunsSong.s,Message_DisplayOcarinaStaffBlockSunsSong,0x80152464,0xD
|
||||
asm/non_matchings/code/z_message/Message_GetState.s,Message_GetState,0x80152498,0x7D
|
||||
asm/non_matchings/code/z_message/func_8015268C.s,func_8015268C,0x8015268C,0x176
|
||||
asm/non_matchings/code/z_message/func_80152C64.s,func_80152C64,0x80152C64,0x12
|
||||
asm/non_matchings/code/z_message/Message_DrawTextBox.s,Message_DrawTextBox,0x8015268C,0x176
|
||||
asm/non_matchings/code/z_message/Message_SetView.s,Message_SetView,0x80152C64,0x12
|
||||
asm/non_matchings/code/z_message/func_80152CAC.s,func_80152CAC,0x80152CAC,0x85
|
||||
asm/non_matchings/code/z_message/func_80152EC0.s,func_80152EC0,0x80152EC0,0x3E
|
||||
asm/non_matchings/code/z_message/func_80152FB8.s,func_80152FB8,0x80152FB8,0x1E6
|
||||
asm/non_matchings/code/z_message/func_80153750.s,func_80153750,0x80153750,0x1CB
|
||||
asm/non_matchings/code/z_message/func_80153E7C.s,func_80153E7C,0x80153E7C,0x1D
|
||||
asm/non_matchings/code/z_message/func_80153EF0.s,func_80153EF0,0x80153EF0,0xB9
|
||||
asm/non_matchings/code/z_message/func_801541D4.s,func_801541D4,0x801541D4,0x961
|
||||
asm/non_matchings/code/z_message/Message_SpawnSongEffect.s,Message_SpawnSongEffect,0x80152EC0,0x3E
|
||||
asm/non_matchings/code/z_message/Message_FlashOcarinaButtons.s,Message_FlashOcarinaButtons,0x80152FB8,0x1E6
|
||||
asm/non_matchings/code/z_message/Message_DrawOcarinaButtons.s,Message_DrawOcarinaButtons,0x80153750,0x1CB
|
||||
asm/non_matchings/code/z_message/Message_DrawText.s,Message_DrawText,0x80153E7C,0x1D
|
||||
asm/non_matchings/code/z_message/Message_DrawSceneTitleCard.s,Message_DrawSceneTitleCard,0x80153EF0,0xB9
|
||||
asm/non_matchings/code/z_message/Message_DrawMain.s,Message_DrawMain,0x801541D4,0x961
|
||||
asm/non_matchings/code/z_message/Message_Draw.s,Message_Draw,0x80156758,0x2D
|
||||
asm/non_matchings/code/z_message/Message_Update.s,Message_Update,0x8015680C,0x7A6
|
||||
asm/non_matchings/code/z_message/func_801586A4.s,func_801586A4,0x801586A4,0xC
|
||||
asm/non_matchings/code/z_message/Message_SetTables.s,Message_SetTables,0x801586A4,0xC
|
||||
asm/non_matchings/code/z_message/Message_Init.s,Message_Init,0x801586D4,0x7F
|
||||
asm/non_matchings/code/z_message_nes/Message_FindMessageNES.s,Message_FindMessageNES,0x801588D0,0x2E
|
||||
asm/non_matchings/code/z_message_nes/Message_LoadCharNES.s,Message_LoadCharNES,0x80158988,0x27
|
||||
@@ -2395,12 +2395,12 @@ asm/non_matchings/code/z_message_nes/Message_LoadLocalizedRupeesNES.s,Message_Lo
|
||||
asm/non_matchings/code/z_message_nes/Message_LoadRupeesNES.s,Message_LoadRupeesNES,0x80158D98,0x86
|
||||
asm/non_matchings/code/z_message_nes/Message_LoadTimeNES.s,Message_LoadTimeNES,0x80158FB0,0xAF
|
||||
asm/non_matchings/code/z_message_nes/Message_LoadOwlWarpTextNES.s,Message_LoadOwlWarpTextNES,0x8015926C,0x73
|
||||
asm/non_matchings/code/z_message_nes/func_80159438.s,func_80159438,0x80159438,0x8D
|
||||
asm/non_matchings/code/z_message_nes/func_8015966C.s,func_8015966C,0x8015966C,0x6CB
|
||||
asm/non_matchings/code/z_message_nes/func_8015B198.s,func_8015B198,0x8015B198,0xD6E
|
||||
asm/non_matchings/code/z_message_nes/Message_GetTimerDigitsNES.s,Message_GetTimerDigitsNES,0x80159438,0x8D
|
||||
asm/non_matchings/code/z_message_nes/Message_DrawTextNES.s,Message_DrawTextNES,0x8015966C,0x6CB
|
||||
asm/non_matchings/code/z_message_nes/Message_DecodeNES.s,Message_DecodeNES,0x8015B198,0xD6E
|
||||
asm/non_matchings/code/z_message_staff/Message_FindCreditsMessage.s,Message_FindCreditsMessage,0x8015E750,0x27
|
||||
asm/non_matchings/code/z_message_staff/func_8015E7EC.s,func_8015E7EC,0x8015E7EC,0x42F
|
||||
asm/non_matchings/code/z_message_staff/func_8015F8A8.s,func_8015F8A8,0x8015F8A8,0x47A
|
||||
asm/non_matchings/code/z_message_staff/Message_DrawTextCredits.s,Message_DrawTextCredits,0x8015E7EC,0x42F
|
||||
asm/non_matchings/code/z_message_staff/Message_DecodeCredits.s,Message_DecodeCredits,0x8015F8A8,0x47A
|
||||
asm/non_matchings/code/z_player_call/PlayerCall_InitFuncPtrs.s,PlayerCall_InitFuncPtrs,0x80160A90,0x1A
|
||||
asm/non_matchings/code/z_player_call/PlayerCall_Init.s,PlayerCall_Init,0x80160AF8,0x12
|
||||
asm/non_matchings/code/z_player_call/PlayerCall_Destroy.s,PlayerCall_Destroy,0x80160B40,0x10
|
||||
|
||||
|
Reference in New Issue
Block a user