mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-12-03 11:41:04 +00:00
SceneNum -> SceneId (#1036)
* sceneNum -> sceneId * horse data scene -> sceneId * Clean up scene table * format * PR comments * Some more * It helps if you actually save the file * PR * Remove comment * Format * Conflicts
This commit is contained in:
parent
08be0b3bd4
commit
3a723efb15
@ -2087,7 +2087,7 @@ s32 Inventory_GetBtnBItem(PlayState* play);
|
||||
void Inventory_ChangeEquipment(s16 value);
|
||||
u8 Inventory_DeleteEquipment(PlayState* play, s16 equipment);
|
||||
void Inventory_ChangeUpgrade(s16 upgrade, u32 value);
|
||||
s32 Inventory_IsMapVisible(s16 sceneNum);
|
||||
s32 Inventory_IsMapVisible(s16 sceneId);
|
||||
void Inventory_SetMapVisibility(s16 tingleIndex);
|
||||
void Inventory_SaveDekuPlaygroundHighScore(s16 timerId);
|
||||
void Inventory_IncrementSkullTokenCount(s16 sceneIndex);
|
||||
@ -2173,8 +2173,8 @@ void Scene_DrawConfig5(PlayState* play);
|
||||
void Scene_DrawConfigMatAnimManualStep(PlayState* play);
|
||||
void Scene_DrawConfigGreatBayTemple(PlayState* play);
|
||||
EntranceTableEntry* Entrance_GetTableEntry(u16 entrance);
|
||||
s32 Entrance_GetSceneNum(u16 entrance);
|
||||
s32 Entrance_GetSceneNumAbsolute(u16 entrance);
|
||||
s32 Entrance_GetSceneId(u16 entrance);
|
||||
s32 Entrance_GetSceneIdAbsolute(u16 entrance);
|
||||
s32 Entrance_GetSpawnNum(u16 entrance);
|
||||
s32 Entrance_GetTransitionFlags(u16 entrance);
|
||||
s32 Schedule_RunScript(PlayState* play, u8* script, ScheduleOutput* output);
|
||||
@ -2557,7 +2557,7 @@ s32 Play_ChangeCameraSetting(PlayState* play, s16 camId, s16 setting);
|
||||
void func_80169AFC(PlayState* play, s16 camId, s16 arg2);
|
||||
u16 Play_GetActorCsCamSetting(PlayState* play, s32 csCamDataIndex);
|
||||
Vec3s* Play_GetActorCsCamFuncData(PlayState* play, s32 csCamDataIndex);
|
||||
s16 Play_GetOriginalSceneNumber(s16 sceneNum);
|
||||
s16 Play_GetOriginalSceneId(s16 sceneId);
|
||||
void Play_SaveCycleSceneFlags(GameState* gameState);
|
||||
void Play_SetRespawnData(GameState* gameState, s32 respawnNumber, u16 sceneSetup, s32 roomIndex, s32 playerParams, Vec3f* pos, s16 yaw);
|
||||
void Play_SetupRespawnPoint(GameState* gameState, s32 respawnNumber, s32 playerParams);
|
||||
|
@ -1312,7 +1312,7 @@ extern u32 gGsFlagsShift[];
|
||||
extern void* gItemIcons[];
|
||||
extern u8 gItemSlots[];
|
||||
extern s16 gItemPrices[];
|
||||
extern u16 gScenesPerRegion[11][27];
|
||||
extern u16 gSceneIdsPerRegion[11][27];
|
||||
extern u32 D_801C2410[];
|
||||
extern s16 gPlayerFormObjectIndices[8];
|
||||
extern RomFile gObjectTable[643];
|
||||
|
@ -1084,7 +1084,7 @@ typedef struct {
|
||||
|
||||
struct PlayState {
|
||||
/* 0x00000 */ GameState state;
|
||||
/* 0x000A4 */ s16 sceneNum;
|
||||
/* 0x000A4 */ s16 sceneId;
|
||||
/* 0x000A6 */ u8 sceneConfig;
|
||||
/* 0x000A7 */ char unk_A7[0x9];
|
||||
/* 0x000B0 */ void* sceneSegment;
|
||||
|
@ -165,7 +165,7 @@ typedef struct Inventory {
|
||||
} Inventory; // size = 0x88
|
||||
|
||||
typedef struct HorseData {
|
||||
/* 0x0 */ s16 scene; // "spot_no"
|
||||
/* 0x0 */ s16 sceneId; // "spot_no"
|
||||
/* 0x2 */ Vec3s pos; // "horse_x", "horse_y" and "horse_z"
|
||||
/* 0x8 */ s16 yaw; // "horse_a"
|
||||
} HorseData; // size = 0xA
|
||||
@ -226,7 +226,7 @@ typedef struct SavePlayerData {
|
||||
/* 0x20 */ u8 unk_20; // "first_memory"
|
||||
/* 0x22 */ u16 owlActivationFlags; // "memory_warp_point"
|
||||
/* 0x24 */ u8 unk_24; // "last_warp_pt"
|
||||
/* 0x26 */ s16 savedSceneNum; // "scene_data_ID"
|
||||
/* 0x26 */ s16 savedSceneId; // "scene_data_ID"
|
||||
} SavePlayerData; // size = 0x28
|
||||
|
||||
typedef struct Save {
|
||||
|
@ -316,7 +316,7 @@ typedef struct {
|
||||
} EntranceEntry; // size = 0x2
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ s8 sceneNum;
|
||||
/* 0x0 */ s8 sceneId;
|
||||
/* 0x1 */ s8 spawnNum;
|
||||
/* 0x2 */ u16 flags;
|
||||
} EntranceTableEntry; // size = 0x4
|
||||
|
@ -42,8 +42,8 @@ typedef enum {
|
||||
/* 0x07 */ SCHEDULE_CMD_ID_NOP, // No-Op
|
||||
/* 0x08 */ SCHEDULE_CMD_ID_CHECK_MISC_S, // Special check based on items or masks and branches if check passes, short range branch
|
||||
/* 0x09 */ SCHEDULE_CMD_ID_RET_VAL_S, // Ends script and returns byte value
|
||||
/* 0x0A */ SCHEDULE_CMD_ID_CHECK_NOT_IN_SCENE_S, // Checks if the current scene is not SceneNum and branches if so, short range branch
|
||||
/* 0x0B */ SCHEDULE_CMD_ID_CHECK_NOT_IN_SCENE_L, // Checks if the current scene is not SceneNum and branches if so, long range branch
|
||||
/* 0x0A */ SCHEDULE_CMD_ID_CHECK_NOT_IN_SCENE_S, // Checks if the current scene is not SceneId and branches if so, short range branch
|
||||
/* 0x0B */ SCHEDULE_CMD_ID_CHECK_NOT_IN_SCENE_L, // Checks if the current scene is not SceneId and branches if so, long range branch
|
||||
/* 0x0C */ SCHEDULE_CMD_ID_CHECK_NOT_IN_DAY_S, // Checks if the current day is not Day and branches if so, short range branch
|
||||
/* 0x0D */ SCHEDULE_CMD_ID_CHECK_NOT_IN_DAY_L, // Checks if the current day is not Day and branches if so, long range branch
|
||||
/* 0x0E */ SCHEDULE_CMD_ID_RET_TIME, // Returns 2 time values
|
||||
@ -130,15 +130,15 @@ typedef struct {
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ ScheduleCmdBase base;
|
||||
/* 0x1 */ u8 sceneH;
|
||||
/* 0x2 */ u8 sceneL;
|
||||
/* 0x1 */ u8 sceneIdH;
|
||||
/* 0x2 */ u8 sceneIdL;
|
||||
/* 0x3 */ s8 offset;
|
||||
} ScheduleCmdCheckNotInSceneS; // size = 0x4
|
||||
|
||||
typedef struct {
|
||||
/* 0x0 */ ScheduleCmdBase base;
|
||||
/* 0x1 */ u8 sceneH;
|
||||
/* 0x2 */ u8 sceneL;
|
||||
/* 0x1 */ u8 sceneIdH;
|
||||
/* 0x2 */ u8 sceneIdL;
|
||||
/* 0x3 */ u8 offsetH;
|
||||
/* 0x4 */ u8 offsetL;
|
||||
} ScheduleCmdCheckNotInSceneL; // size = 0x5
|
||||
|
@ -365,7 +365,7 @@ s16 gItemPrices[] = {
|
||||
};
|
||||
|
||||
// Used to map scene indexes to their region in Termina
|
||||
u16 gScenesPerRegion[11][27] = {
|
||||
u16 gSceneIdsPerRegion[11][27] = {
|
||||
// Great Bay
|
||||
{
|
||||
SCENE_30GYOSON,
|
||||
@ -522,7 +522,7 @@ void Inventory_ChangeUpgrade(s16 upgrade, u32 value) {
|
||||
gSaveContext.save.inventory.upgrades = upgrades;
|
||||
}
|
||||
|
||||
s32 Inventory_IsMapVisible(s16 sceneNum) {
|
||||
s32 Inventory_IsMapVisible(s16 sceneId) {
|
||||
s16 index = 0;
|
||||
|
||||
/**
|
||||
@ -530,30 +530,30 @@ s32 Inventory_IsMapVisible(s16 sceneNum) {
|
||||
* increment to the next index of scenesVisible so that every scene gets a unique flag in scenesVisible,
|
||||
* 224 bits were allocated to this although there are only 112 scenes
|
||||
*/
|
||||
if (sceneNum >= 0x20) {
|
||||
if (sceneNum < 0x40) {
|
||||
if (sceneId >= 0x20) {
|
||||
if (sceneId < 0x40) {
|
||||
index = 1;
|
||||
} else if (sceneNum < 0x60) {
|
||||
} else if (sceneId < 0x60) {
|
||||
index = 2;
|
||||
} else if (sceneNum < 0x80) {
|
||||
} else if (sceneId < 0x80) {
|
||||
index = 3;
|
||||
} else if (sceneNum < 0xA0) {
|
||||
} else if (sceneId < 0xA0) {
|
||||
index = 4;
|
||||
} else if (sceneNum < 0xC0) {
|
||||
} else if (sceneId < 0xC0) {
|
||||
index = 5;
|
||||
} else if (sceneNum < 0xE0) {
|
||||
} else if (sceneId < 0xE0) {
|
||||
index = 6;
|
||||
}
|
||||
}
|
||||
|
||||
if (gSaveContext.save.scenesVisible[index] & gBitFlags[sceneNum - (index << 5)]) {
|
||||
if (gSaveContext.save.scenesVisible[index] & gBitFlags[sceneId - (index << 5)]) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
static u16 sScenesPerTingleMap[6][12] = {
|
||||
static u16 sSceneIdsPerTingleMap[6][12] = {
|
||||
{
|
||||
// Clock Town Tingle Map
|
||||
SCENE_00KEIKOKU,
|
||||
@ -630,11 +630,11 @@ static u16 sScenesPerTingleMap[6][12] = {
|
||||
void Inventory_SetMapVisibility(s16 tingleIndex) {
|
||||
s16 i = 0;
|
||||
s16 index = 0;
|
||||
u16(*tingleMapSceneIndices)[] = &sScenesPerTingleMap[tingleIndex];
|
||||
u16(*tingleMapSceneIds)[] = &sSceneIdsPerTingleMap[tingleIndex];
|
||||
|
||||
if ((tingleIndex >= 0) && (tingleIndex < 6)) {
|
||||
while (true) {
|
||||
if ((*tingleMapSceneIndices)[i] == 0xFFFF) {
|
||||
if ((*tingleMapSceneIds)[i] == 0xFFFF) {
|
||||
break;
|
||||
}
|
||||
|
||||
@ -643,38 +643,38 @@ void Inventory_SetMapVisibility(s16 tingleIndex) {
|
||||
* increment to the next index of scenesVisible so that every scene gets a unique flag in scenesVisible,
|
||||
* 224 bits were allocated to this although there are only 112 scenes
|
||||
*/
|
||||
if (((s16)(*tingleMapSceneIndices)[i]) < 0x20) {
|
||||
if (((s16)(*tingleMapSceneIds)[i]) < 0x20) {
|
||||
index = 0;
|
||||
} else if (((s16)(*tingleMapSceneIndices)[i]) < 0x40) {
|
||||
} else if (((s16)(*tingleMapSceneIds)[i]) < 0x40) {
|
||||
index = 1;
|
||||
} else if (((s16)(*tingleMapSceneIndices)[i]) < 0x60) {
|
||||
} else if (((s16)(*tingleMapSceneIds)[i]) < 0x60) {
|
||||
index = 2;
|
||||
} else if (((s16)(*tingleMapSceneIndices)[i]) < 0x80) {
|
||||
} else if (((s16)(*tingleMapSceneIds)[i]) < 0x80) {
|
||||
index = 3;
|
||||
} else if (((s16)(*tingleMapSceneIndices)[i]) < 0xA0) {
|
||||
} else if (((s16)(*tingleMapSceneIds)[i]) < 0xA0) {
|
||||
index = 4;
|
||||
} else if (((s16)(*tingleMapSceneIndices)[i]) < 0xC0) {
|
||||
} else if (((s16)(*tingleMapSceneIds)[i]) < 0xC0) {
|
||||
index = 5;
|
||||
} else if (((s16)(*tingleMapSceneIndices)[i]) < 0xE0) {
|
||||
} else if (((s16)(*tingleMapSceneIds)[i]) < 0xE0) {
|
||||
index = 6;
|
||||
}
|
||||
|
||||
gSaveContext.save.scenesVisible[index] =
|
||||
gSaveContext.save.scenesVisible[index] | gBitFlags[(s16)(*tingleMapSceneIndices)[i] - (index << 5)];
|
||||
gSaveContext.save.scenesVisible[index] | gBitFlags[(s16)(*tingleMapSceneIds)[i] - (index << 5)];
|
||||
i++;
|
||||
}
|
||||
|
||||
if ((*tingleMapSceneIndices) == sScenesPerTingleMap[0]) {
|
||||
if ((*tingleMapSceneIds) == sSceneIdsPerTingleMap[0]) {
|
||||
gSaveContext.save.mapsVisible |= 3;
|
||||
} else if ((*tingleMapSceneIndices) == sScenesPerTingleMap[1]) {
|
||||
} else if ((*tingleMapSceneIds) == sSceneIdsPerTingleMap[1]) {
|
||||
gSaveContext.save.mapsVisible |= 0x1C;
|
||||
} else if ((*tingleMapSceneIndices) == sScenesPerTingleMap[2]) {
|
||||
} else if ((*tingleMapSceneIds) == sSceneIdsPerTingleMap[2]) {
|
||||
gSaveContext.save.mapsVisible |= 0xE0;
|
||||
} else if ((*tingleMapSceneIndices) == sScenesPerTingleMap[3]) {
|
||||
} else if ((*tingleMapSceneIds) == sSceneIdsPerTingleMap[3]) {
|
||||
gSaveContext.save.mapsVisible |= 0x100;
|
||||
} else if ((*tingleMapSceneIndices) == sScenesPerTingleMap[4]) {
|
||||
} else if ((*tingleMapSceneIds) == sSceneIdsPerTingleMap[4]) {
|
||||
gSaveContext.save.mapsVisible |= 0x1E00;
|
||||
} else if ((*tingleMapSceneIndices) == sScenesPerTingleMap[5]) {
|
||||
} else if ((*tingleMapSceneIds) == sSceneIdsPerTingleMap[5]) {
|
||||
gSaveContext.save.mapsVisible |= 0x6000;
|
||||
}
|
||||
}
|
||||
|
@ -2235,7 +2235,7 @@ void Actor_InitContext(PlayState* play, ActorContext* actorCtx, ActorEntry* acto
|
||||
s32 i;
|
||||
|
||||
gSaveContext.save.weekEventReg[92] |= 0x80;
|
||||
cycleFlags = &gSaveContext.cycleSceneFlags[Play_GetOriginalSceneNumber(play->sceneNum)];
|
||||
cycleFlags = &gSaveContext.cycleSceneFlags[Play_GetOriginalSceneId(play->sceneId)];
|
||||
|
||||
bzero(actorCtx, sizeof(ActorContext));
|
||||
ActorOverlayTable_Init();
|
||||
@ -2252,8 +2252,8 @@ void Actor_InitContext(PlayState* play, ActorContext* actorCtx, ActorEntry* acto
|
||||
actorCtx->sceneFlags.chest = cycleFlags->chest;
|
||||
actorCtx->sceneFlags.switches[0] = cycleFlags->switch0;
|
||||
actorCtx->sceneFlags.switches[1] = cycleFlags->switch1;
|
||||
if (play->sceneNum == SCENE_INISIE_R) {
|
||||
cycleFlags = &gSaveContext.cycleSceneFlags[play->sceneNum];
|
||||
if (play->sceneId == SCENE_INISIE_R) {
|
||||
cycleFlags = &gSaveContext.cycleSceneFlags[play->sceneId];
|
||||
}
|
||||
actorCtx->sceneFlags.collectible[0] = cycleFlags->collectible;
|
||||
actorCtx->sceneFlags.clearedRoom = cycleFlags->clearedRoom;
|
||||
|
@ -47,7 +47,7 @@ u8 D_801B46C0[] = {
|
||||
/* 0x0E */ 1
|
||||
};
|
||||
|
||||
s16 sSmallMemScenes[] = {
|
||||
s16 sSmallMemSceneIds[] = {
|
||||
SCENE_F01,
|
||||
};
|
||||
|
||||
@ -1463,10 +1463,10 @@ u32 BgCheck_InitStaticLookup(CollisionContext* colCtx, PlayState* play, StaticLo
|
||||
* Returns whether the current scene should reserve less memory for it's collision lookup
|
||||
*/
|
||||
s32 BgCheck_IsSmallMemScene(PlayState* play) {
|
||||
s16* i;
|
||||
s16* sceneId;
|
||||
|
||||
for (i = sSmallMemScenes; i < sSmallMemScenes + ARRAY_COUNT(sSmallMemScenes); i++) {
|
||||
if (play->sceneNum == *i) {
|
||||
for (sceneId = sSmallMemSceneIds; sceneId < sSmallMemSceneIds + ARRAY_COUNT(sSmallMemSceneIds); sceneId++) {
|
||||
if (play->sceneId == *sceneId) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -1505,7 +1505,7 @@ s32 BgCheck_GetSpecialSceneMaxObjects(PlayState* play, s32* maxNodes, s32* maxPo
|
||||
s32 i;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(sCustomDynapolyMem); i++) {
|
||||
if (play->sceneNum == sCustomDynapolyMem[i].sceneId) {
|
||||
if (play->sceneId == sCustomDynapolyMem[i].sceneId) {
|
||||
*maxNodes = sCustomDynapolyMem[i].maxNodes;
|
||||
*maxPolygons = sCustomDynapolyMem[i].maxPolygons;
|
||||
*maxVertices = sCustomDynapolyMem[i].maxVertices;
|
||||
@ -1542,7 +1542,7 @@ void BgCheck_Allocate(CollisionContext* colCtx, PlayState* play, CollisionHeader
|
||||
s32 useCustomSubdivisions;
|
||||
s32 i;
|
||||
|
||||
if (BgCheck_TryGetCustomMemsize(play->sceneNum, &customMemSize)) {
|
||||
if (BgCheck_TryGetCustomMemsize(play->sceneId, &customMemSize)) {
|
||||
colCtx->memSize = customMemSize;
|
||||
} else {
|
||||
colCtx->memSize = 0x23000;
|
||||
@ -1555,7 +1555,7 @@ void BgCheck_Allocate(CollisionContext* colCtx, PlayState* play, CollisionHeader
|
||||
useCustomSubdivisions = false;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(sSceneSubdivisionList); i++) {
|
||||
if (play->sceneNum == sSceneSubdivisionList[i].sceneId) {
|
||||
if (play->sceneId == sSceneSubdivisionList[i].sceneId) {
|
||||
colCtx->subdivAmount.x = sSceneSubdivisionList[i].subdivAmount.x;
|
||||
colCtx->subdivAmount.y = sSceneSubdivisionList[i].subdivAmount.y;
|
||||
colCtx->subdivAmount.z = sSceneSubdivisionList[i].subdivAmount.z;
|
||||
|
@ -20,7 +20,7 @@ u16 ElfMessage_GetFirstCycleHint(PlayState* play) {
|
||||
if (gSaveContext.save.weekEventReg[9] & 1) {
|
||||
return 0x21E;
|
||||
}
|
||||
if (play->sceneNum == SCENE_YOUSEI_IZUMI) {
|
||||
if (play->sceneId == SCENE_YOUSEI_IZUMI) {
|
||||
return 0;
|
||||
}
|
||||
return 0x21D;
|
||||
@ -29,7 +29,7 @@ u16 ElfMessage_GetFirstCycleHint(PlayState* play) {
|
||||
return 0x21F;
|
||||
}
|
||||
if (INV_CONTENT(ITEM_DEED_LAND) == ITEM_DEED_LAND) {
|
||||
if (play->sceneNum != SCENE_OKUJOU) {
|
||||
if (play->sceneId != SCENE_OKUJOU) {
|
||||
return 0x244;
|
||||
}
|
||||
return 0;
|
||||
|
@ -5,7 +5,7 @@ s16 sMinimapInitPosX = 0;
|
||||
s16 sMinimapInitPosZ = 0;
|
||||
s16 sMinimapInitDir = 0;
|
||||
|
||||
s32 sDungeonAndBossScenes[] = {
|
||||
s32 sDungeonAndBossSceneIds[] = {
|
||||
SCENE_MITURIN, SCENE_HAKUGIN, SCENE_SEA, SCENE_INISIE_N, SCENE_INISIE_R,
|
||||
SCENE_MITURIN_BS, SCENE_HAKUGIN_BS, SCENE_SEA_BS, SCENE_INISIE_BS,
|
||||
};
|
||||
@ -17,8 +17,8 @@ s32 sDungeonAndBossScenes[] = {
|
||||
s32 Map_GetDungeonOrBossAreaIndex(PlayState* play) {
|
||||
s32 i;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(sDungeonAndBossScenes); i++) {
|
||||
if (Play_GetOriginalSceneNumber(play->sceneNum) == sDungeonAndBossScenes[i]) {
|
||||
for (i = 0; i < ARRAY_COUNT(sDungeonAndBossSceneIds); i++) {
|
||||
if (Play_GetOriginalSceneId(play->sceneId) == sDungeonAndBossSceneIds[i]) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
@ -45,7 +45,7 @@ s32 func_8010A0A4(PlayState* play) {
|
||||
return true;
|
||||
}
|
||||
|
||||
s32 sDungeonScenes[] = {
|
||||
s32 sDungeonSceneIds[] = {
|
||||
SCENE_MITURIN, SCENE_HAKUGIN, SCENE_SEA, SCENE_INISIE_N, SCENE_INISIE_R,
|
||||
};
|
||||
|
||||
@ -56,8 +56,8 @@ s32 sDungeonScenes[] = {
|
||||
s32 Map_GetDungeonAreaIndex(PlayState* play) {
|
||||
s32 i;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(sDungeonScenes); i++) {
|
||||
if (Play_GetOriginalSceneNumber(play->sceneNum) == sDungeonScenes[i]) {
|
||||
for (i = 0; i < ARRAY_COUNT(sDungeonSceneIds); i++) {
|
||||
if (Play_GetOriginalSceneId(play->sceneId) == sDungeonSceneIds[i]) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
@ -76,7 +76,7 @@ s32 Map_IsInDungeonArea(PlayState* play) {
|
||||
return true;
|
||||
}
|
||||
|
||||
s32 sBossScenes[] = {
|
||||
s32 sBossSceneIds[] = {
|
||||
SCENE_MITURIN_BS, // DUNGEON_INDEX_WOODFALL_TEMPLE
|
||||
SCENE_HAKUGIN_BS, // DUNGEON_INDEX_SNOWHEAD_TEMPLE
|
||||
SCENE_SEA_BS, // DUNGEON_INDEX_GREAT_BAY_TEMPLE
|
||||
@ -90,8 +90,8 @@ s32 sBossScenes[] = {
|
||||
s32 Map_GetBossAreaIndex(PlayState* play) {
|
||||
s32 i;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(sBossScenes); i++) {
|
||||
if (Play_GetOriginalSceneNumber(play->sceneNum) == sBossScenes[i]) {
|
||||
for (i = 0; i < ARRAY_COUNT(sBossSceneIds); i++) {
|
||||
if (Play_GetOriginalSceneId(play->sceneId) == sBossSceneIds[i]) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
@ -120,7 +120,7 @@ s32 func_8010A238(PlayState* play) {
|
||||
s32 i;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(D_801BF5A4); i++) {
|
||||
if (Play_GetOriginalSceneNumber(play->sceneNum) == D_801BF5A4[i]) {
|
||||
if (Play_GetOriginalSceneId(play->sceneId) == D_801BF5A4[i]) {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
@ -156,7 +156,7 @@ void Map_InitRoomData(PlayState* play, s16 room) {
|
||||
|
||||
if (room >= 0) {
|
||||
if (Map_IsInDungeonOrBossArea(play)) {
|
||||
gSaveContext.save.permanentSceneFlags[Play_GetOriginalSceneNumber(play->sceneNum)].rooms |= gBitFlags[room];
|
||||
gSaveContext.save.permanentSceneFlags[Play_GetOriginalSceneId(play->sceneId)].rooms |= gBitFlags[room];
|
||||
interfaceCtx->mapRoomNum = room;
|
||||
interfaceCtx->dungeonOrBossAreaMapIndex = mapIndex;
|
||||
}
|
||||
@ -189,7 +189,7 @@ void Map_Init(PlayState* play) {
|
||||
if (Map_IsInDungeonOrBossArea(play)) {
|
||||
dungeonIndex = Map_GetDungeonOrBossAreaIndex(play);
|
||||
gSaveContext.mapIndex = dungeonIndex;
|
||||
switch (play->sceneNum) {
|
||||
switch (play->sceneId) {
|
||||
case SCENE_MITURIN_BS:
|
||||
dungeonIndex = DUNGEON_INDEX_WOODFALL_TEMPLE;
|
||||
break;
|
||||
@ -243,7 +243,7 @@ void Map_Update(PlayState* play) {
|
||||
if (Map_IsInDungeonArea(play)) {
|
||||
floor = func_80109124(player->actor.world.pos.y);
|
||||
if (floor != -1) {
|
||||
gSaveContext.save.permanentSceneFlags[Play_GetOriginalSceneNumber(play->sceneNum)].unk_14 |=
|
||||
gSaveContext.save.permanentSceneFlags[Play_GetOriginalSceneId(play->sceneId)].unk_14 |=
|
||||
gBitFlags[FLOOR_INDEX_MAX - floor];
|
||||
XREG(94) = FLOOR_INDEX_MAX - floor;
|
||||
if (interfaceCtx->mapRoomNum != sLastRoomNum) {
|
||||
|
@ -267,7 +267,7 @@ void func_8014D62C(PlayState* play, s32* arg1, f32* arg2, s16* arg3) {
|
||||
s16 phi_v0;
|
||||
s16 phi_s0;
|
||||
|
||||
if ((func_8010A0A4(play) != 0) || (play->sceneNum == 0x4F)) {
|
||||
if ((func_8010A0A4(play) != 0) || (play->sceneId == SCENE_SECOM)) {
|
||||
phi_v0 = 0xA;
|
||||
} else {
|
||||
phi_v0 = pauseCtx->cursorPoint[PAUSE_WORLD_MAP];
|
||||
|
@ -254,7 +254,7 @@ void Message_LoadAreaTextNES(PlayState* play, s32* offset, f32* arg2, s16* decod
|
||||
s16 currentArea;
|
||||
s16 stringLimit;
|
||||
|
||||
if ((func_8010A0A4(play) != 0) || (play->sceneNum == SCENE_SECOM)) {
|
||||
if ((func_8010A0A4(play) != 0) || (play->sceneId == SCENE_SECOM)) {
|
||||
currentArea = 10;
|
||||
} else {
|
||||
currentArea = play->pauseCtx.cursorPoint[PAUSE_WORLD_MAP];
|
||||
|
@ -621,7 +621,7 @@ void Interface_UpdateHudAlphas(PlayState* play, s16 dimmingAlpha) {
|
||||
interfaceCtx->magicAlpha = risingAlpha;
|
||||
}
|
||||
|
||||
if (play->sceneNum == SCENE_SPOT00) {
|
||||
if (play->sceneId == SCENE_SPOT00) {
|
||||
if (interfaceCtx->minimapAlpha < 170) {
|
||||
interfaceCtx->minimapAlpha = risingAlpha;
|
||||
} else {
|
||||
@ -1173,7 +1173,7 @@ u8 Item_Give(PlayState* play, u8 item) {
|
||||
|
||||
if (item == ITEM_SKULL_TOKEN) {
|
||||
SET_QUEST_ITEM(item - ITEM_SKULL_TOKEN + QUEST_SKULL_TOKEN);
|
||||
Inventory_IncrementSkullTokenCount(play->sceneNum);
|
||||
Inventory_IncrementSkullTokenCount(play->sceneId);
|
||||
return ITEM_NONE;
|
||||
|
||||
} else if (item == ITEM_TINGLE_MAP) {
|
||||
@ -2863,7 +2863,7 @@ void Interface_DrawTimers(PlayState* play) {
|
||||
|
||||
if (sTimerId == TIMER_ID_MOON_CRASH) {
|
||||
gSaveContext.save.day = 4;
|
||||
if ((play->sceneNum == SCENE_OKUJOU) && (gSaveContext.sceneSetupIndex == 3)) {
|
||||
if ((play->sceneId == SCENE_OKUJOU) && (gSaveContext.sceneSetupIndex == 3)) {
|
||||
play->nextEntrance = ENTRANCE(TERMINA_FIELD, 1);
|
||||
gSaveContext.nextCutsceneIndex = 0xFFF0;
|
||||
play->transitionTrigger = TRANS_TRIGGER_START;
|
||||
@ -2892,7 +2892,7 @@ void Interface_DrawTimers(PlayState* play) {
|
||||
gSaveContext.timerStopTimes[sTimerId] = SECONDS_TO_TIMER(120);
|
||||
gSaveContext.timerCurTimes[sTimerId] = SECONDS_TO_TIMER(120);
|
||||
}
|
||||
} else if ((gSaveContext.eventInf[3] & 0x10) && (play->sceneNum == SCENE_DEKUTES) &&
|
||||
} else if ((gSaveContext.eventInf[3] & 0x10) && (play->sceneId == SCENE_DEKUTES) &&
|
||||
(gSaveContext.timerStopTimes[sTimerId] >= SECONDS_TO_TIMER(120))) {
|
||||
gSaveContext.timerCurTimes[sTimerId] = SECONDS_TO_TIMER(120);
|
||||
}
|
||||
@ -3001,7 +3001,7 @@ void Interface_DrawTimers(PlayState* play) {
|
||||
if (osTime >= SECONDS_TO_TIMER(120)) {
|
||||
osTime = SECONDS_TO_TIMER(120);
|
||||
}
|
||||
} else if ((gSaveContext.eventInf[3] & 0x10) && (play->sceneNum == SCENE_DEKUTES) &&
|
||||
} else if ((gSaveContext.eventInf[3] & 0x10) && (play->sceneId == SCENE_DEKUTES) &&
|
||||
(osTime >= SECONDS_TO_TIMER(120))) {
|
||||
osTime = SECONDS_TO_TIMER(120);
|
||||
}
|
||||
@ -3018,7 +3018,7 @@ void Interface_DrawTimers(PlayState* play) {
|
||||
play_sound(NA_SE_SY_WARNING_COUNT_E);
|
||||
sTimerBeepSfxSeconds = sTimerDigits[4];
|
||||
}
|
||||
} else if ((gSaveContext.eventInf[3] & 0x10) && (play->sceneNum == SCENE_DEKUTES)) {
|
||||
} else if ((gSaveContext.eventInf[3] & 0x10) && (play->sceneId == SCENE_DEKUTES)) {
|
||||
if ((((void)0, gSaveContext.timerCurTimes[sTimerId]) >
|
||||
(gSaveContext.save.dekuPlaygroundHighScores[CURRENT_DAY - 1] - SECONDS_TO_TIMER(9))) &&
|
||||
(sTimerBeepSfxSeconds != sTimerDigits[4])) {
|
||||
@ -3056,7 +3056,7 @@ void Interface_DrawTimers(PlayState* play) {
|
||||
} else {
|
||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 255, 255, 255, 255);
|
||||
}
|
||||
} else if ((gSaveContext.eventInf[3] & 0x10) && (play->sceneNum == SCENE_DEKUTES)) {
|
||||
} else if ((gSaveContext.eventInf[3] & 0x10) && (play->sceneId == SCENE_DEKUTES)) {
|
||||
if (((void)0, gSaveContext.timerCurTimes[sTimerId]) >=
|
||||
gSaveContext.save.dekuPlaygroundHighScores[CURRENT_DAY - 1]) {
|
||||
gDPSetPrimColor(OVERLAY_DISP++, 0, 0, 255, 50, 0, 255);
|
||||
|
@ -302,38 +302,38 @@ Vec3s* Play_GetActorCsCamFuncData(PlayState* this, s32 csCamDataIndex) {
|
||||
* Converts the number of a scene to its "original" equivalent, the default version of the area which the player first
|
||||
* enters.
|
||||
*/
|
||||
s16 Play_GetOriginalSceneNumber(s16 sceneNum) {
|
||||
s16 Play_GetOriginalSceneId(s16 sceneId) {
|
||||
// Inverted Stone Tower Temple -> Stone Tower Temple
|
||||
if (sceneNum == SCENE_INISIE_R) {
|
||||
if (sceneId == SCENE_INISIE_R) {
|
||||
return SCENE_INISIE_N;
|
||||
}
|
||||
|
||||
// Purified Southern Swamp -> Poisoned Sothern Swamp
|
||||
if (sceneNum == SCENE_20SICHITAI2) {
|
||||
if (sceneId == SCENE_20SICHITAI2) {
|
||||
return SCENE_20SICHITAI;
|
||||
}
|
||||
|
||||
// Spring Mountain Village -> Winter Mountain Village
|
||||
if (sceneNum == SCENE_10YUKIYAMANOMURA2) {
|
||||
if (sceneId == SCENE_10YUKIYAMANOMURA2) {
|
||||
return SCENE_10YUKIYAMANOMURA;
|
||||
}
|
||||
|
||||
// Spring Goron Village -> Winter Goron Village
|
||||
if (sceneNum == SCENE_11GORONNOSATO2) {
|
||||
if (sceneId == SCENE_11GORONNOSATO2) {
|
||||
return SCENE_11GORONNOSATO;
|
||||
}
|
||||
|
||||
// Spring Path to Goron Village -> Winter Path to Goron Village
|
||||
if (sceneNum == SCENE_17SETUGEN2) {
|
||||
if (sceneId == SCENE_17SETUGEN2) {
|
||||
return SCENE_17SETUGEN;
|
||||
}
|
||||
|
||||
// Inverted Stone Tower -> Stone Tower
|
||||
if (sceneNum == SCENE_F41) {
|
||||
if (sceneId == SCENE_F41) {
|
||||
return SCENE_F40;
|
||||
}
|
||||
|
||||
return sceneNum;
|
||||
return sceneId;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -344,13 +344,13 @@ void Play_SaveCycleSceneFlags(GameState* thisx) {
|
||||
PlayState* this = (PlayState*)thisx;
|
||||
CycleSceneFlags* cycleSceneFlags;
|
||||
|
||||
cycleSceneFlags = &gSaveContext.cycleSceneFlags[Play_GetOriginalSceneNumber(this->sceneNum)];
|
||||
cycleSceneFlags = &gSaveContext.cycleSceneFlags[Play_GetOriginalSceneId(this->sceneId)];
|
||||
cycleSceneFlags->chest = this->actorCtx.sceneFlags.chest;
|
||||
cycleSceneFlags->switch0 = this->actorCtx.sceneFlags.switches[0];
|
||||
cycleSceneFlags->switch1 = this->actorCtx.sceneFlags.switches[1];
|
||||
|
||||
if (this->sceneNum == SCENE_INISIE_R) { // Inverted Stone Tower Temple
|
||||
cycleSceneFlags = &gSaveContext.cycleSceneFlags[this->sceneNum];
|
||||
if (this->sceneId == SCENE_INISIE_R) { // Inverted Stone Tower Temple
|
||||
cycleSceneFlags = &gSaveContext.cycleSceneFlags[this->sceneId];
|
||||
}
|
||||
|
||||
cycleSceneFlags->collectible = this->actorCtx.sceneFlags.collectible[0];
|
||||
@ -375,7 +375,7 @@ void Play_SetupRespawnPoint(GameState* thisx, s32 respawnMode, s32 playerParams)
|
||||
PlayState* this = (PlayState*)thisx;
|
||||
Player* player = GET_PLAYER(this);
|
||||
|
||||
if (this->sceneNum != SCENE_KAKUSIANA) { // Grottos
|
||||
if (this->sceneId != SCENE_KAKUSIANA) { // Grottos
|
||||
Play_SetRespawnData(&this->state, respawnMode, (u16)((void)0, gSaveContext.save.entrance),
|
||||
this->roomCtx.curRoom.num, playerParams, &player->actor.world.pos,
|
||||
player->actor.shape.rot.y);
|
||||
@ -384,7 +384,7 @@ void Play_SetupRespawnPoint(GameState* thisx, s32 respawnMode, s32 playerParams)
|
||||
|
||||
// Override respawn data in Sakon's Hideout
|
||||
void func_80169ECC(PlayState* this) {
|
||||
if (this->sceneNum == SCENE_SECOM) {
|
||||
if (this->sceneId == SCENE_SECOM) {
|
||||
this->nextEntrance = ENTRANCE(IKANA_CANYON, 6);
|
||||
gSaveContext.respawnFlag = -7;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ void func_80127B64(struct_801F58B0 arg0[], UNK_TYPE arg1, Vec3f* arg2);
|
||||
s32 func_801226E0(PlayState* play, s32 arg1) {
|
||||
if (arg1 == 0) {
|
||||
Play_SetupRespawnPoint(&play->state, RESPAWN_MODE_DOWN, 0xBFF);
|
||||
if (play->sceneNum == SCENE_KAKUSIANA) {
|
||||
if (play->sceneId == SCENE_KAKUSIANA) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
@ -111,8 +111,7 @@ s32 Room_HandleLoadCallbacks(PlayState* play, RoomContext* roomCtx) {
|
||||
func_80123140(play, GET_PLAYER(play));
|
||||
Actor_SpawnTransitionActors(play, &play->actorCtx);
|
||||
|
||||
if (((play->sceneNum != SCENE_IKANA) || (roomCtx->curRoom.num != 1)) &&
|
||||
(play->sceneNum != SCENE_IKNINSIDE)) {
|
||||
if (((play->sceneId != SCENE_IKANA) || (roomCtx->curRoom.num != 1)) && (play->sceneId != SCENE_IKNINSIDE)) {
|
||||
play->envCtx.lightSettingOverride = 0xFF;
|
||||
play->envCtx.unk_E0 = 0;
|
||||
}
|
||||
|
@ -28,12 +28,12 @@ void Object_InitBank(GameState* gameState, ObjectContext* objectCtx) {
|
||||
u32 spaceSize;
|
||||
s32 i;
|
||||
|
||||
if (play->sceneNum == SCENE_CLOCKTOWER || play->sceneNum == SCENE_TOWN || play->sceneNum == SCENE_BACKTOWN ||
|
||||
play->sceneNum == SCENE_ICHIBA) {
|
||||
if (play->sceneId == SCENE_CLOCKTOWER || play->sceneId == SCENE_TOWN || play->sceneId == SCENE_BACKTOWN ||
|
||||
play->sceneId == SCENE_ICHIBA) {
|
||||
spaceSize = OBJECT_SPACE_SIZE_CLOCK_TOWN;
|
||||
} else if (play->sceneNum == SCENE_MILK_BAR) {
|
||||
} else if (play->sceneId == SCENE_MILK_BAR) {
|
||||
spaceSize = OBJECT_SPACE_SIZE_MILK_BAR;
|
||||
} else if (play->sceneNum == SCENE_00KEIKOKU) {
|
||||
} else if (play->sceneId == SCENE_00KEIKOKU) {
|
||||
spaceSize = OBJECT_SPACE_SIZE_TERMINA_FIELD;
|
||||
} else {
|
||||
spaceSize = OBJECT_SPACE_SIZE_DEFAULT;
|
||||
@ -497,23 +497,23 @@ void Scene_HeaderCmdSetAreaVisitedFlag(PlayState* play, SceneCmd* cmd) {
|
||||
s16 i = 0;
|
||||
|
||||
while (true) {
|
||||
if (gScenesPerRegion[i][j] == 0xFFFF) {
|
||||
if (gSceneIdsPerRegion[i][j] == 0xFFFF) {
|
||||
i++;
|
||||
j = 0;
|
||||
|
||||
if (i == ARRAY_COUNT(gScenesPerRegion)) {
|
||||
if (i == ARRAY_COUNT(gSceneIdsPerRegion)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (play->sceneNum == gScenesPerRegion[i][j]) {
|
||||
if (play->sceneId == gSceneIdsPerRegion[i][j]) {
|
||||
break;
|
||||
}
|
||||
|
||||
j++;
|
||||
}
|
||||
|
||||
if (i < ARRAY_COUNT(gScenesPerRegion)) {
|
||||
if (i < ARRAY_COUNT(gSceneIdsPerRegion)) {
|
||||
gSaveContext.save.mapsVisited = (gBitFlags[i] | gSaveContext.save.mapsVisited) | gSaveContext.save.mapsVisited;
|
||||
}
|
||||
}
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -130,9 +130,9 @@ s32 Schedule_ReturnValueS(PlayState* play, u8** script, ScheduleOutput* output)
|
||||
|
||||
s32 Schedule_CheckNotInSceneS(PlayState* play, u8** script, ScheduleOutput* output) {
|
||||
ScheduleCmdCheckNotInSceneS* cmd = (ScheduleCmdCheckNotInSceneS*)*script;
|
||||
s16 scene = (cmd->sceneH << 8) | cmd->sceneL;
|
||||
s16 sceneId = (cmd->sceneIdH << 8) | cmd->sceneIdL;
|
||||
|
||||
if (scene != play->sceneNum) {
|
||||
if (sceneId != play->sceneId) {
|
||||
*script += cmd->offset;
|
||||
}
|
||||
|
||||
@ -141,9 +141,9 @@ s32 Schedule_CheckNotInSceneS(PlayState* play, u8** script, ScheduleOutput* outp
|
||||
|
||||
s32 Schedule_CheckNotInSceneL(PlayState* play, u8** script, ScheduleOutput* output) {
|
||||
ScheduleCmdCheckNotInSceneL* cmd = (ScheduleCmdCheckNotInSceneL*)*script;
|
||||
s16 scene = (cmd->sceneH << 8) | cmd->sceneL;
|
||||
s16 sceneId = (cmd->sceneIdH << 8) | cmd->sceneIdL;
|
||||
|
||||
if (scene != play->sceneNum) {
|
||||
if (sceneId != play->sceneId) {
|
||||
*script = *script + (s16)((cmd->offsetH << 8) | cmd->offsetL);
|
||||
}
|
||||
|
||||
|
@ -21,7 +21,7 @@ s32 Snap_RecordPictographedActors(PlayState* play) {
|
||||
gSaveContext.save.pictoFlags0 = 0;
|
||||
gSaveContext.save.pictoFlags1 = 0;
|
||||
|
||||
if (play->sceneNum == SCENE_20SICHITAI) {
|
||||
if (play->sceneId == SCENE_20SICHITAI) {
|
||||
Snap_SetFlag(PICTOGRAPH_IN_SWAMP);
|
||||
}
|
||||
|
||||
@ -30,7 +30,7 @@ s32 Snap_RecordPictographedActors(PlayState* play) {
|
||||
seen = 0;
|
||||
|
||||
// Actors which must be pictographed in a specific scene
|
||||
switch (play->sceneNum) {
|
||||
switch (play->sceneId) {
|
||||
case SCENE_20SICHITAI:
|
||||
if ((actor->id == ACTOR_EN_MNK) || (actor->id == ACTOR_EN_BIGOKUTA)) {
|
||||
seen = PICTO_SEEN_IN_SCENE;
|
||||
|
@ -248,7 +248,7 @@ void Sram_ClearFlagsAtDawnOfTheFirstDay(void) {
|
||||
* Used by Song of Time (when clicking "Yes") and (indirectly) by the "Dawn of the New Day" cutscene
|
||||
*/
|
||||
void Sram_SaveEndOfCycle(PlayState* play) {
|
||||
s16 sceneNum;
|
||||
s16 sceneId;
|
||||
s32 j;
|
||||
s32 i;
|
||||
u8 slot;
|
||||
@ -264,13 +264,13 @@ void Sram_SaveEndOfCycle(PlayState* play) {
|
||||
gSaveContext.save.playerData.deaths = 999;
|
||||
}
|
||||
|
||||
sceneNum = Play_GetOriginalSceneNumber(play->sceneNum);
|
||||
sceneId = Play_GetOriginalSceneId(play->sceneId);
|
||||
Play_SaveCycleSceneFlags(&play->state);
|
||||
|
||||
play->actorCtx.sceneFlags.chest &= D_801C5FC0[sceneNum][2];
|
||||
play->actorCtx.sceneFlags.switches[0] &= D_801C5FC0[sceneNum][0];
|
||||
play->actorCtx.sceneFlags.switches[1] &= D_801C5FC0[sceneNum][1];
|
||||
play->actorCtx.sceneFlags.collectible[0] &= D_801C5FC0[sceneNum][3];
|
||||
play->actorCtx.sceneFlags.chest &= D_801C5FC0[sceneId][2];
|
||||
play->actorCtx.sceneFlags.switches[0] &= D_801C5FC0[sceneId][0];
|
||||
play->actorCtx.sceneFlags.switches[1] &= D_801C5FC0[sceneId][1];
|
||||
play->actorCtx.sceneFlags.collectible[0] &= D_801C5FC0[sceneId][3];
|
||||
play->actorCtx.sceneFlags.clearedRoom = 0;
|
||||
|
||||
for (i = 0; i < SCENE_MAX; i++) {
|
||||
@ -608,7 +608,7 @@ SavePlayerData sSaveDefaultPlayerData = {
|
||||
0xFF, // unk_20
|
||||
0x0000, // owlActivationFlags
|
||||
0xFF, // unk_24
|
||||
SCENE_SPOT00, // savedSceneNum
|
||||
SCENE_SPOT00, // savedSceneId
|
||||
};
|
||||
|
||||
ItemEquips sSaveDefaultItemEquips = {
|
||||
@ -679,7 +679,7 @@ void Sram_InitNewSave(void) {
|
||||
Lib_MemCpy(&gSaveContext.save.inventory, &sSaveDefaultInventory, sizeof(Inventory));
|
||||
Lib_MemCpy(&gSaveContext.save.checksum, &sSaveDefaultChecksum, sizeof(gSaveContext.save.checksum));
|
||||
|
||||
gSaveContext.save.horseData.scene = SCENE_F01;
|
||||
gSaveContext.save.horseData.sceneId = SCENE_F01;
|
||||
gSaveContext.save.horseData.pos.x = -1420;
|
||||
gSaveContext.save.horseData.pos.y = 257;
|
||||
gSaveContext.save.horseData.pos.z = -1285;
|
||||
@ -708,7 +708,7 @@ SavePlayerData sSaveDebugPlayerData = {
|
||||
0xFF, // unk_20
|
||||
0, // owlActivationFlags
|
||||
0xFF, // unk_24
|
||||
SCENE_SPOT00, // savedSceneNum
|
||||
SCENE_SPOT00, // savedSceneId
|
||||
};
|
||||
|
||||
ItemEquips sSaveDebugItemEquips = {
|
||||
@ -839,7 +839,7 @@ void Sram_InitDebugSave(void) {
|
||||
|
||||
gSaveContext.save.hasTatl = true;
|
||||
|
||||
gSaveContext.save.horseData.scene = SCENE_F01;
|
||||
gSaveContext.save.horseData.sceneId = SCENE_F01;
|
||||
gSaveContext.save.horseData.pos.x = -1420;
|
||||
gSaveContext.save.horseData.pos.y = 257;
|
||||
gSaveContext.save.horseData.pos.z = -1285;
|
||||
|
@ -75,7 +75,7 @@ void func_801431E8(GameState* gameState, SkyboxContext* skyboxCtx, s16 skyType)
|
||||
skyboxCtx->envB = 40;
|
||||
|
||||
// Inverted Stone Tower Temple and Inverted Stone Tower
|
||||
if ((play->sceneNum == SCENE_F41) || (play->sceneNum == SCENE_INISIE_R)) {
|
||||
if ((play->sceneId == SCENE_F41) || (play->sceneId == SCENE_INISIE_R)) {
|
||||
skyboxCtx->rotZ = 3.15000009537f;
|
||||
}
|
||||
}
|
||||
|
@ -162,7 +162,7 @@ void DmAh_Init(Actor* thisx, PlayState* play) {
|
||||
this->actor.flags &= ~ACTOR_FLAG_1;
|
||||
Actor_SetScale(&this->actor, 0.01f);
|
||||
this->unk_27C |= 1;
|
||||
if ((play->sceneNum == SCENE_YADOYA) && (play->curSpawn == 4)) {
|
||||
if ((play->sceneId == SCENE_YADOYA) && (play->curSpawn == 4)) {
|
||||
this->unk_280 = func_80C1D78C(play);
|
||||
func_80C1D410(this, 1);
|
||||
this->actionFunc = func_80C1D92C;
|
||||
|
@ -183,7 +183,7 @@ void func_80C1C958(DmAn* this, PlayState* play) {
|
||||
this->unk_2AE |= 1;
|
||||
this->actor.draw = func_80C1D0B0;
|
||||
|
||||
if ((play->sceneNum == SCENE_YADOYA) && (play->curSpawn == 4)) {
|
||||
if ((play->sceneId == SCENE_YADOYA) && (play->curSpawn == 4)) {
|
||||
this->unk_2B4 = func_80C1C8E8(play);
|
||||
func_80C1C4D8(this, play, 1);
|
||||
this->actionFunc = func_80C1CC80;
|
||||
|
@ -449,7 +449,7 @@ void func_80AA5E2C(DmChar00* this, PlayState* play) {
|
||||
|
||||
void func_80AA5EBC(DmChar00* this, PlayState* play) {
|
||||
if (play->csCtx.state != 0) {
|
||||
switch (play->sceneNum) {
|
||||
switch (play->sceneId) {
|
||||
case SCENE_LOST_WOODS:
|
||||
if (gSaveContext.sceneSetupIndex == 1) {
|
||||
func_80AA561C(this, play);
|
||||
@ -527,7 +527,7 @@ void DmChar00_Init(Actor* thisx, PlayState* play) {
|
||||
s32 pad;
|
||||
DmChar00* this = THIS;
|
||||
|
||||
if ((play->sceneNum == SCENE_LOST_WOODS) && !Cutscene_IsPlaying(play)) {
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && !Cutscene_IsPlaying(play)) {
|
||||
Actor_MarkForDeath(thisx);
|
||||
}
|
||||
|
||||
@ -914,7 +914,7 @@ void DmChar00_Draw(Actor* thisx, PlayState* play2) {
|
||||
s32 pad;
|
||||
Gfx* gfx = GRAPH_ALLOC(play->state.gfxCtx, sizeof(Gfx) * 4);
|
||||
|
||||
if ((play->csCtx.state == 0) && ((play->sceneNum != SCENE_OPENINGDAN) || (gSaveContext.sceneSetupIndex != 0) ||
|
||||
if ((play->csCtx.state == 0) && ((play->sceneId != SCENE_OPENINGDAN) || (gSaveContext.sceneSetupIndex != 0) ||
|
||||
(play->roomCtx.curRoom.num != 0) || (play->csCtx.currentCsIndex != 1) ||
|
||||
(DMCHAR00_GET(&this->actor) != DMCHAR00_0))) {
|
||||
return;
|
||||
|
@ -75,7 +75,7 @@ void DmChar02_PlaySfxForDroppingOcarinaCutscene(DmChar02* this, PlayState* play)
|
||||
}
|
||||
|
||||
void DmChar02_PlaySfxForCutscenes(DmChar02* this, PlayState* play) {
|
||||
if ((play->csCtx.state != 0) && (play->sceneNum == SCENE_OKUJOU) && (play->csCtx.currentCsIndex == 1)) {
|
||||
if ((play->csCtx.state != 0) && (play->sceneId == SCENE_OKUJOU) && (play->csCtx.currentCsIndex == 1)) {
|
||||
DmChar02_PlaySfxForDroppingOcarinaCutscene(this, play);
|
||||
}
|
||||
}
|
||||
|
@ -544,7 +544,7 @@ void func_80AAD4A8(DmChar05* this, PlayState* play) {
|
||||
}
|
||||
}
|
||||
} else if (DMCHAR05_GET(&this->actor) == DMCHAR05_3) {
|
||||
if (play->sceneNum == SCENE_OKUJOU) {
|
||||
if (play->sceneId == SCENE_OKUJOU) {
|
||||
if (gSaveContext.sceneSetupIndex == 2) {
|
||||
if (play->csCtx.currentCsIndex == 0) {
|
||||
func_80AAD3F8(this, play);
|
||||
@ -552,7 +552,7 @@ void func_80AAD4A8(DmChar05* this, PlayState* play) {
|
||||
func_80AAD450(this, play);
|
||||
}
|
||||
}
|
||||
} else if (play->sceneNum == SCENE_SPOT00) {
|
||||
} else if (play->sceneId == SCENE_SPOT00) {
|
||||
if (gSaveContext.sceneSetupIndex == 9) {
|
||||
if ((play->csCtx.currentCsIndex == 0) && (play->csCtx.frames == 255)) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EN_EVIL_POWER);
|
||||
|
@ -183,7 +183,7 @@ void func_80C248A8(DmGm* this, PlayState* play) {
|
||||
this->unk_2AE |= 1;
|
||||
this->actor.draw = func_80C25000;
|
||||
|
||||
if ((play->sceneNum == SCENE_YADOYA) && (play->curSpawn == 4)) {
|
||||
if ((play->sceneId == SCENE_YADOYA) && (play->curSpawn == 4)) {
|
||||
this->unk_2B4 = func_80C24838(play);
|
||||
func_80C24428(this, play, 1);
|
||||
this->actionFunc = func_80C24BD0;
|
||||
|
@ -95,7 +95,7 @@ void DmOpstage_Update(Actor* thisx, PlayState* play) {
|
||||
DmOpstage* this = THIS;
|
||||
|
||||
this->actionFunc(this, play);
|
||||
if ((play->sceneNum == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 0) && (play->csCtx.frames == 480)) {
|
||||
if ((play->sceneId == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 0) && (play->csCtx.frames == 480)) {
|
||||
// This actor is responsible for playing the fairy sound during the exposition in the intro,
|
||||
// during the transition to Lost Woods, before Ocarina gets stolen.
|
||||
func_8019F128(NA_SE_EV_NAVY_FLY_REBIRTH);
|
||||
|
@ -917,7 +917,7 @@ void DmStk_PlaySfxForMoonWarpCutsceneVersion2(DmStk* this, PlayState* play) {
|
||||
*/
|
||||
void DmStk_PlaySfxForCutscenes(DmStk* this, PlayState* play) {
|
||||
if (play->csCtx.state != 0) {
|
||||
switch (play->sceneNum) {
|
||||
switch (play->sceneId) {
|
||||
case SCENE_LOST_WOODS:
|
||||
if (gSaveContext.sceneSetupIndex == 1) {
|
||||
DmStk_PlaySfxForIntroCutsceneFirstPart(this, play);
|
||||
@ -1028,13 +1028,13 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
this->fogG = play->lightCtx.unk8;
|
||||
this->fogB = play->lightCtx.unk9;
|
||||
|
||||
if ((play->sceneNum == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1)) {
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1)) {
|
||||
this->alpha = 0;
|
||||
this->fogN = 0;
|
||||
this->fogF = 1000;
|
||||
this->fogScale = 1.0f;
|
||||
this->actionFunc = DmStk_DoNothing;
|
||||
} else if (play->sceneNum == SCENE_OKUJOU) {
|
||||
} else if (play->sceneId == SCENE_OKUJOU) {
|
||||
this->alpha = 255;
|
||||
this->fogN = 996;
|
||||
this->fogF = 1000;
|
||||
@ -1088,7 +1088,7 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
Collider_SetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
|
||||
CollisionCheck_SetInfo2(&this->actor.colChkInfo, &sDamageTable, &sColChkInfoInit);
|
||||
|
||||
} else if ((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 0)) {
|
||||
} else if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 0)) {
|
||||
if (!(play->actorCtx.flags & ACTORCTX_FLAG_1)) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
}
|
||||
@ -1101,7 +1101,7 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
this->animIndex = SK_ANIM_BENT_OVER_HEAD_TWITCH;
|
||||
this->actionFunc = DmStk_WaitForTelescope;
|
||||
} else {
|
||||
if ((play->sceneNum == SCENE_LOST_WOODS) && !Cutscene_IsPlaying(play)) {
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && !Cutscene_IsPlaying(play)) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
}
|
||||
|
||||
@ -1127,8 +1127,7 @@ void DmStk_Init(Actor* thisx, PlayState* play) {
|
||||
|
||||
Actor_SetScale(&this->actor, 0.01f);
|
||||
|
||||
if ((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 3) &&
|
||||
(play->csCtx.currentCsIndex > 0)) {
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 3) && (play->csCtx.currentCsIndex > 0)) {
|
||||
play->envCtx.unk_17 = 15;
|
||||
play->envCtx.unk_18 = 15;
|
||||
}
|
||||
@ -1316,7 +1315,7 @@ void DmStk_UpdateCutscenes(DmStk* this, PlayState* play) {
|
||||
if (play->csCtx.frames == play->csCtx.actorActions[actorActionIndex]->startFrame) {
|
||||
if (this->csAction != play->csCtx.actorActions[actorActionIndex]->action) {
|
||||
this->csAction = play->csCtx.actorActions[actorActionIndex]->action;
|
||||
if (play->sceneNum == SCENE_CLOCKTOWER) {
|
||||
if (play->sceneId == SCENE_CLOCKTOWER) {
|
||||
this->handType = SK_HAND_TYPE_HOLDING_FLUTE;
|
||||
} else {
|
||||
this->handType = SK_HAND_TYPE_DEFAULT;
|
||||
@ -1685,7 +1684,7 @@ void DmStk_UpdateCutscenes(DmStk* this, PlayState* play) {
|
||||
this->handType = SK_HAND_TYPE_HOLDING_MAJORAS_MASK;
|
||||
} else if (((this->animIndex >= SK_ANIM_HUDDLE_WITH_FAIRIES) && (this->animIndex <= SK_ANIM_DRAW)) ||
|
||||
((this->animIndex >= SK_ANIM_PLAY_FLUTE) && (this->animIndex <= SK_ANIM_CARTWHEEL)) ||
|
||||
((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 7))) {
|
||||
((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 7))) {
|
||||
this->maskType = SK_MASK_TYPE_NO_MASK;
|
||||
if ((this->animIndex == SK_ANIM_HOLD_UP_MASK_START) || (this->animIndex == SK_ANIM_HOLD_UP_MASK_LOOP)) {
|
||||
this->handType = SK_HAND_TYPE_HOLDING_MAJORAS_MASK_AND_FLUTE;
|
||||
@ -1777,7 +1776,7 @@ void DmStk_Update(Actor* thisx, PlayState* play) {
|
||||
|
||||
this->actionFunc(this, play);
|
||||
|
||||
if (play->sceneNum == SCENE_OKUJOU) {
|
||||
if (play->sceneId == SCENE_OKUJOU) {
|
||||
DmStk_UpdateCollision(this, play);
|
||||
}
|
||||
|
||||
@ -1824,8 +1823,7 @@ void DmStk_Update(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 3) &&
|
||||
(play->csCtx.currentCsIndex > 0)) {
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 3) && (play->csCtx.currentCsIndex > 0)) {
|
||||
play->envCtx.unk_17 = 15;
|
||||
play->envCtx.unk_18 = 15;
|
||||
}
|
||||
@ -1888,7 +1886,7 @@ void DmStk_PostLimbDraw2(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot
|
||||
break;
|
||||
|
||||
case SK_MASK_TYPE_NORMAL:
|
||||
if ((play->sceneNum == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(play->csCtx.frames < 1400)) {
|
||||
if (this->fogN == this->fogF) {
|
||||
this->fogF = this->fogN;
|
||||
@ -1950,7 +1948,7 @@ void DmStk_PostLimbDraw2(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot
|
||||
case SK_HAND_TYPE_HOLDING_OCARINA:
|
||||
gSPDisplayList(POLY_OPA_DISP++, gSkullKidOcarinaHoldingRightHand);
|
||||
|
||||
if ((play->sceneNum == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1)) {
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && (gSaveContext.sceneSetupIndex == 1)) {
|
||||
gSPDisplayList(POLY_OPA_DISP++, gSkullKidOcarinaOfTimeDL);
|
||||
}
|
||||
break;
|
||||
@ -1988,7 +1986,7 @@ void DmStk_PostLimbDraw2(PlayState* play, s32 limbIndex, Gfx** dList, Vec3s* rot
|
||||
break;
|
||||
|
||||
case SK_HAND_TYPE_HOLDING_OCARINA:
|
||||
if ((play->sceneNum != SCENE_LOST_WOODS) || (gSaveContext.sceneSetupIndex != 1)) {
|
||||
if ((play->sceneId != SCENE_LOST_WOODS) || (gSaveContext.sceneSetupIndex != 1)) {
|
||||
gSPDisplayList(POLY_OPA_DISP++, gSkullKidOcarinaOfTimeDL);
|
||||
}
|
||||
gSPDisplayList(POLY_OPA_DISP++, gSkullKidTwoFingersExtendedLeftHand);
|
||||
|
@ -100,7 +100,7 @@ static InitChainEntry sInitChain[] = {
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ s16 sceneNum;
|
||||
/* 0x00 */ s16 sceneId;
|
||||
/* 0x02 */ u8 index;
|
||||
} ShutterSceneInfo; // size = 0x4
|
||||
|
||||
@ -114,8 +114,8 @@ ShutterSceneInfo D_808A2258[] = {
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ s16 dungeonScene;
|
||||
/* 0x02 */ s16 bossScene;
|
||||
/* 0x00 */ s16 dungeonSceneId;
|
||||
/* 0x02 */ s16 bossSceneId;
|
||||
/* 0x04 */ u8 index;
|
||||
} BossDoorInfo; // size = 0x6
|
||||
|
||||
@ -209,7 +209,7 @@ void DoorShutter_Init(Actor* thisx, PlayState* play2) {
|
||||
ShutterSceneInfo* shutterSceneInfo = &D_808A2258[0];
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(D_808A2258) - 1; i++, shutterSceneInfo++) {
|
||||
if (play->sceneNum == shutterSceneInfo->sceneNum) {
|
||||
if (play->sceneId == shutterSceneInfo->sceneId) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -222,7 +222,7 @@ void DoorShutter_Init(Actor* thisx, PlayState* play2) {
|
||||
BossDoorInfo* bossDoorInfo = &D_808A22A0[0];
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(D_808A22A0) - 1; i++, bossDoorInfo++) {
|
||||
if ((play->sceneNum == bossDoorInfo->dungeonScene) || (play->sceneNum == bossDoorInfo->bossScene)) {
|
||||
if ((play->sceneId == bossDoorInfo->dungeonSceneId) || (play->sceneId == bossDoorInfo->bossSceneId)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ typedef struct {
|
||||
|
||||
// Maps scenes to SpiralObjectType
|
||||
typedef struct {
|
||||
/* 0x00 */ s16 sceneNum;
|
||||
/* 0x00 */ s16 sceneId;
|
||||
/* 0x02 */ u8 objectType;
|
||||
} SpiralSceneInfo;
|
||||
|
||||
@ -147,7 +147,7 @@ s32 DoorSpiral_GetObjectType(PlayState* play) {
|
||||
s32 type;
|
||||
|
||||
for (i = 0; i < ARRAY_COUNT(spiralSceneInfo); sceneInfo++, i++) {
|
||||
if (play->sceneNum == sceneInfo->sceneNum) {
|
||||
if (play->sceneId == sceneInfo->sceneId) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -75,13 +75,13 @@ void DoorWarp1_SetupAction(DoorWarp1* this, DoorWarp1ActionFunc actionFunc) {
|
||||
s32 func_808B849C(DoorWarp1* this, PlayState* play) {
|
||||
s32 ret = 0;
|
||||
|
||||
if ((play->sceneNum == SCENE_MITURIN_BS) && !CHECK_QUEST_ITEM(QUEST_REMAINS_ODOWLA)) {
|
||||
if ((play->sceneId == SCENE_MITURIN_BS) && !CHECK_QUEST_ITEM(QUEST_REMAINS_ODOWLA)) {
|
||||
ret = 1;
|
||||
} else if ((play->sceneNum == SCENE_HAKUGIN_BS) && !CHECK_QUEST_ITEM(QUEST_REMAINS_GOHT)) {
|
||||
} else if ((play->sceneId == SCENE_HAKUGIN_BS) && !CHECK_QUEST_ITEM(QUEST_REMAINS_GOHT)) {
|
||||
ret = 2;
|
||||
} else if ((play->sceneNum == SCENE_SEA_BS) && !CHECK_QUEST_ITEM(QUEST_REMAINS_GYORG)) {
|
||||
} else if ((play->sceneId == SCENE_SEA_BS) && !CHECK_QUEST_ITEM(QUEST_REMAINS_GYORG)) {
|
||||
ret = 3;
|
||||
} else if ((play->sceneNum == SCENE_INISIE_BS) && !CHECK_QUEST_ITEM(QUEST_REMAINS_TWINMOLD)) {
|
||||
} else if ((play->sceneId == SCENE_INISIE_BS) && !CHECK_QUEST_ITEM(QUEST_REMAINS_TWINMOLD)) {
|
||||
ret = 4;
|
||||
}
|
||||
return ret;
|
||||
@ -161,8 +161,8 @@ void DoorWarp1_Init(Actor* thisx, PlayState* play) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_MITURIN_BS) || (play->sceneNum == SCENE_HAKUGIN_BS) ||
|
||||
(play->sceneNum == SCENE_INISIE_BS) || (play->sceneNum == SCENE_SEA_BS)) {
|
||||
if ((play->sceneId == SCENE_MITURIN_BS) || (play->sceneId == SCENE_HAKUGIN_BS) ||
|
||||
(play->sceneId == SCENE_INISIE_BS) || (play->sceneId == SCENE_SEA_BS)) {
|
||||
func_800FE484();
|
||||
play->interfaceCtx.restrictions.unk_312 = 1;
|
||||
play->interfaceCtx.restrictions.songOfSoaring = 1;
|
||||
@ -268,7 +268,7 @@ void func_808B8E78(DoorWarp1* this, PlayState* play) {
|
||||
this->unk_1A8 = 0.0f;
|
||||
this->unk_1AC = 0.0f;
|
||||
this->unk_1A4 = 700.0f;
|
||||
if (play->sceneNum == SCENE_INISIE_N) {
|
||||
if (play->sceneId == SCENE_INISIE_N) {
|
||||
DoorWarp1_SetupAction(this, func_808B96A0);
|
||||
} else if (gSaveContext.save.weekEventReg[86] & 0x80) {
|
||||
this->unk_1D4 = 0;
|
||||
@ -307,12 +307,12 @@ void func_808B90CC(DoorWarp1* this, PlayState* play) {
|
||||
s16 sp2E = 0;
|
||||
f32 phi_f0 = 0.0f;
|
||||
|
||||
if (play->sceneNum == SCENE_MITURIN) {
|
||||
if (play->sceneId == SCENE_MITURIN) {
|
||||
sp2E = -10;
|
||||
phi_f0 = -5.0f;
|
||||
} else if (play->sceneNum == SCENE_HAKUGIN) {
|
||||
} else if (play->sceneId == SCENE_HAKUGIN) {
|
||||
sp2E = -20;
|
||||
} else if (play->sceneNum == SCENE_SEA) {
|
||||
} else if (play->sceneId == SCENE_SEA) {
|
||||
sp2E = -20;
|
||||
}
|
||||
|
||||
@ -551,7 +551,7 @@ void func_808B9CE8(DoorWarp1* this, PlayState* play) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (play->sceneNum) {
|
||||
switch (play->sceneId) {
|
||||
case SCENE_MITURIN_BS:
|
||||
gSaveContext.save.unk_ECC[0] =
|
||||
(((void)0, gSaveContext.save.unk_ECC[0]) & 0xFFFFFF00) | (((u8)gSaveContext.save.unk_ECC[1]) & 0xFF);
|
||||
@ -635,16 +635,16 @@ void func_808BA10C(DoorWarp1* this, PlayState* play) {
|
||||
u8 phi_a0;
|
||||
s32 phi_v0_3;
|
||||
|
||||
if ((play->sceneNum == SCENE_MITURIN_BS) || (play->sceneNum == SCENE_HAKUGIN_BS) ||
|
||||
(play->sceneNum == SCENE_INISIE_BS) || (play->sceneNum == SCENE_SEA_BS)) {
|
||||
D_801F4DE2 = play->sceneNum;
|
||||
if (play->sceneNum == SCENE_MITURIN_BS) {
|
||||
if ((play->sceneId == SCENE_MITURIN_BS) || (play->sceneId == SCENE_HAKUGIN_BS) ||
|
||||
(play->sceneId == SCENE_INISIE_BS) || (play->sceneId == SCENE_SEA_BS)) {
|
||||
D_801F4DE2 = play->sceneId;
|
||||
if (play->sceneId == SCENE_MITURIN_BS) {
|
||||
phi_v0_2 = 0;
|
||||
} else if (play->sceneNum == SCENE_HAKUGIN_BS) {
|
||||
} else if (play->sceneId == SCENE_HAKUGIN_BS) {
|
||||
phi_v0_2 = 1;
|
||||
} else if (play->sceneNum == SCENE_INISIE_BS) {
|
||||
} else if (play->sceneId == SCENE_INISIE_BS) {
|
||||
phi_v0_2 = 2;
|
||||
} else if (play->sceneNum == SCENE_SEA_BS) {
|
||||
} else if (play->sceneId == SCENE_SEA_BS) {
|
||||
phi_v0_2 = 3;
|
||||
} else {
|
||||
phi_v0_2 = 0;
|
||||
@ -882,7 +882,7 @@ void func_808BAAF4(DoorWarp1* this, PlayState* play) {
|
||||
f32 phi_f2;
|
||||
|
||||
phi_f2 = 200.0f;
|
||||
if (play->sceneNum == SCENE_SEA) {
|
||||
if (play->sceneId == SCENE_SEA) {
|
||||
phi_f2 = 85.0f;
|
||||
}
|
||||
|
||||
@ -1039,12 +1039,12 @@ void func_808BB4F4(DoorWarp1* this, PlayState* play2) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (play->sceneNum != SCENE_MITURIN) {
|
||||
if (play->sceneNum == SCENE_HAKUGIN) {
|
||||
if (play->sceneId != SCENE_MITURIN) {
|
||||
if (play->sceneId == SCENE_HAKUGIN) {
|
||||
sp60 = 1;
|
||||
} else if (play->sceneNum == SCENE_SEA) {
|
||||
} else if (play->sceneId == SCENE_SEA) {
|
||||
sp60 = 2;
|
||||
} else if (play->sceneNum == SCENE_INISIE_R) {
|
||||
} else if (play->sceneId == SCENE_INISIE_R) {
|
||||
sp60 = 3;
|
||||
}
|
||||
}
|
||||
|
@ -503,12 +503,12 @@ void EnBaba_FinishInit(EnBaba* this, PlayState* play) {
|
||||
this->stateFlags |= BOMB_SHOP_LADY_STATE_DRAW_SHADOW;
|
||||
this->actor.flags |= ACTOR_FLAG_1;
|
||||
|
||||
if (play->sceneNum == SCENE_BOMYA) {
|
||||
if (play->sceneId == SCENE_BOMYA) {
|
||||
this->stateFlags |= BOMB_SHOP_LADY_STATE_VISIBLE;
|
||||
this->animIndex = BOMB_SHOP_LADY_ANIM_IDLE;
|
||||
Actor_ChangeAnimationByInfo(&this->skelAnime, sAnimationInfo, this->animIndex);
|
||||
this->actionFunc = EnBaba_Idle;
|
||||
} else if (play->sceneNum == SCENE_BACKTOWN) {
|
||||
} else if (play->sceneId == SCENE_BACKTOWN) {
|
||||
if ((BOMB_SHOP_LADY_GET_TYPE(&this->actor) == BOMB_SHOP_LADY_TYPE_FOLLOW_SCHEDULE) &&
|
||||
(gSaveContext.save.entrance != ENTRANCE(NORTH_CLOCK_TOWN, 7)) &&
|
||||
(BOMB_SHOP_LADY_GET_PATH_INDEX(&this->actor) != 0x3F)) {
|
||||
|
@ -178,7 +178,7 @@ void EnBat_Destroy(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
|
||||
s32 EnBat_IsGraveyardOnSecondDay(PlayState* play) {
|
||||
if ((CURRENT_DAY == 2) && (play->sceneNum == SCENE_BOTI)) {
|
||||
if ((CURRENT_DAY == 2) && (play->sceneId == SCENE_BOTI)) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
@ -485,7 +485,7 @@ s32 EnBigokuta_IsNearSwampBoat(EnBigokuta* this, PlayState* play) {
|
||||
void EnBigokuta_CheckOneHitKill(EnBigokuta* this, PlayState* play) {
|
||||
if ((this->bodyCollider.base.acFlags & AC_ON) &&
|
||||
((this->bodyCollider.base.acFlags & AC_HIT) ||
|
||||
((play->sceneNum == SCENE_20SICHITAI || play->sceneNum == SCENE_20SICHITAI2) &&
|
||||
((play->sceneId == SCENE_20SICHITAI || play->sceneId == SCENE_20SICHITAI2) &&
|
||||
EnBigokuta_IsNearSwampBoat(this, play)))) {
|
||||
Enemy_StartFinishingBlow(play, &this->picto.actor);
|
||||
|
||||
|
@ -176,7 +176,7 @@ s32 func_80B3E5DC(EnDai* this, s32 arg1) {
|
||||
s32 func_80B3E69C(EnDai* this, PlayState* play) {
|
||||
s32 ret = false;
|
||||
|
||||
if ((play->csCtx.state != 0) && (play->sceneNum == SCENE_12HAKUGINMAE) && (play->csCtx.currentCsIndex == 0) &&
|
||||
if ((play->csCtx.state != 0) && (play->sceneId == SCENE_12HAKUGINMAE) && (play->csCtx.currentCsIndex == 0) &&
|
||||
!(gSaveContext.save.weekEventReg[30] & 1)) {
|
||||
if (!(this->unk_1CE & 0x10)) {
|
||||
Flags_SetSwitch(play, 20);
|
||||
|
@ -335,11 +335,11 @@ void EnDg_MoveAlongPath(EnDg* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if ((this->index == ENDG_INDEX_SWAMP_SPIDER_HOUSE) ||
|
||||
((this->index == ENDG_INDEX_ROMANI_RANCH) && (play->sceneNum == SCENE_OMOYA))) {
|
||||
((this->index == ENDG_INDEX_ROMANI_RANCH) && (play->sceneId == SCENE_OMOYA))) {
|
||||
Math_ApproachF(&this->actor.speedXZ, 1.0f, 0.2f, 1.0f);
|
||||
} else if (this->index == ENDG_INDEX_ROMANI_RANCH) {
|
||||
Math_ApproachF(&this->actor.speedXZ, 3.5f, 0.2f, 1.0f);
|
||||
} else if (play->sceneNum == SCENE_CLOCKTOWER) {
|
||||
} else if (play->sceneId == SCENE_CLOCKTOWER) {
|
||||
Math_ApproachF(&this->actor.speedXZ, 3.5f, 0.2f, 1.0f);
|
||||
} else if (sRacetrackDogInfo[this->index].textId & 0x11) {
|
||||
Math_ApproachF(&this->actor.speedXZ, 1.0f, 0.2f, 1.0f);
|
||||
@ -397,11 +397,11 @@ void EnDg_PlaySfxGrowl(EnDg* this, f32 frame) {
|
||||
void EnDg_SetupIdleMove(EnDg* this, PlayState* play) {
|
||||
if (!(this->actor.bgCheckFlags & 0x20)) {
|
||||
if ((this->index == ENDG_INDEX_SWAMP_SPIDER_HOUSE) ||
|
||||
((this->index == ENDG_INDEX_ROMANI_RANCH) && (play->sceneNum == SCENE_OMOYA))) {
|
||||
((this->index == ENDG_INDEX_ROMANI_RANCH) && (play->sceneId == SCENE_OMOYA))) {
|
||||
EnDg_ChangeAnim(&this->skelAnime, sAnimationInfo, DOG_ANIM_WALK);
|
||||
} else if (this->index == ENDG_INDEX_ROMANI_RANCH) {
|
||||
EnDg_ChangeAnim(&this->skelAnime, sAnimationInfo, DOG_ANIM_RUN);
|
||||
} else if (play->sceneNum == SCENE_CLOCKTOWER) {
|
||||
} else if (play->sceneId == SCENE_CLOCKTOWER) {
|
||||
EnDg_ChangeAnim(&this->skelAnime, sAnimationInfo, DOG_ANIM_RUN);
|
||||
} else if (sRacetrackDogInfo[this->index].textId & 0x11) {
|
||||
EnDg_ChangeAnim(&this->skelAnime, sAnimationInfo, DOG_ANIM_WALK);
|
||||
@ -1319,7 +1319,7 @@ void EnDg_Init(Actor* thisx, PlayState* play) {
|
||||
this->index = ENDG_GET_INDEX(&this->actor);
|
||||
this->behavior = DOG_BEHAVIOR_INITIAL;
|
||||
this->grabState = DOG_GRAB_STATE_NONE;
|
||||
if (play->sceneNum == SCENE_F01_B) {
|
||||
if (play->sceneId == SCENE_F01_B) {
|
||||
this->sitAfterThrowTimer = 100;
|
||||
EnDg_UpdateTextId(this);
|
||||
}
|
||||
@ -1340,7 +1340,7 @@ void EnDg_Update(Actor* thisx, PlayState* play) {
|
||||
Vec3f floorRot = { 0.0f, 0.0f, 0.0f };
|
||||
|
||||
this->selectedDogIndex = sSelectedRacetrackDogInfo.index;
|
||||
if (!(player->stateFlags1 & 0x20) || (play->sceneNum != SCENE_CLOCKTOWER)) {
|
||||
if (!(player->stateFlags1 & 0x20) || (play->sceneId != SCENE_CLOCKTOWER)) {
|
||||
if (EnDg_ShouldReactToNonHumanPlayer(this, play)) {
|
||||
EnDg_ChooseActionForForm(this, play);
|
||||
} else if (this->behavior != DOG_BEHAVIOR_DEFAULT) {
|
||||
|
@ -551,7 +551,7 @@ void func_8089B580(EnDinofos* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if (this->skelAnime.curFrame > 35.0f) {
|
||||
if ((play->sceneNum == SCENE_MITURIN) && Animation_OnFrame(&this->skelAnime, 38.0f)) {
|
||||
if ((play->sceneId == SCENE_MITURIN) && Animation_OnFrame(&this->skelAnime, 38.0f)) {
|
||||
play->envCtx.lightSettingOverride = 11;
|
||||
}
|
||||
|
||||
@ -562,7 +562,7 @@ void func_8089B580(EnDinofos* this, PlayState* play) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_MITURIN) && Animation_OnFrame(&this->skelAnime, 55.0f)) {
|
||||
if ((play->sceneId == SCENE_MITURIN) && Animation_OnFrame(&this->skelAnime, 55.0f)) {
|
||||
play->envCtx.lightSettingOverride = 0xFF;
|
||||
}
|
||||
|
||||
@ -1053,7 +1053,7 @@ void func_8089CB10(EnDinofos* this, PlayState* play) {
|
||||
worldSphere->center.z = this->limbPos[10].z;
|
||||
}
|
||||
|
||||
if (play->sceneNum == SCENE_MITURIN) {
|
||||
if (play->sceneId == SCENE_MITURIN) {
|
||||
play->envCtx.lightSettingOverride = 11;
|
||||
}
|
||||
|
||||
@ -1114,7 +1114,7 @@ void func_8089CBEC(EnDinofos* this, PlayState* play) {
|
||||
void func_8089CF00(EnDinofos* this, PlayState* play) {
|
||||
Animation_PlayOnce(&this->skelAnime, &object_dinofos_Anim_0017B8);
|
||||
this->colliderJntSph.base.atFlags &= ~AT_ON;
|
||||
if (play->sceneNum == SCENE_MITURIN) {
|
||||
if (play->sceneId == SCENE_MITURIN) {
|
||||
play->envCtx.lightSettingOverride = 255;
|
||||
}
|
||||
this->actionFunc = func_8089CF70;
|
||||
@ -1285,7 +1285,7 @@ s32 func_8089D60C(EnDinofos* this, PlayState* play) {
|
||||
|
||||
func_8089ACEC(this, play);
|
||||
func_8089AD70(this);
|
||||
if (play->sceneNum == SCENE_MITURIN) {
|
||||
if (play->sceneId == SCENE_MITURIN) {
|
||||
play->envCtx.lightSettingOverride = 255;
|
||||
}
|
||||
|
||||
|
@ -447,7 +447,7 @@ void func_80A52074(EnDnk* this, PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80A52134(EnDnk* this, PlayState* play) {
|
||||
if ((play->csCtx.state != 0) && (ENDNK_GET_3C(&this->actor) == 4) && (play->sceneNum == SCENE_SPOT00) &&
|
||||
if ((play->csCtx.state != 0) && (ENDNK_GET_3C(&this->actor) == 4) && (play->sceneId == SCENE_SPOT00) &&
|
||||
(gSaveContext.sceneSetupIndex == 2)) {
|
||||
func_80A52074(this, play);
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ void func_80B3D11C(EnDnp* this, PlayState* play) {
|
||||
s32 temp_v0;
|
||||
s32 val;
|
||||
|
||||
if (!(gSaveContext.save.weekEventReg[29] & 0x40) && (play->sceneNum == SCENE_MITURIN) &&
|
||||
if (!(gSaveContext.save.weekEventReg[29] & 0x40) && (play->sceneId == SCENE_MITURIN) &&
|
||||
(play->csCtx.currentCsIndex == 0)) {
|
||||
this->unk_322 |= 0x20;
|
||||
gSaveContext.save.weekEventReg[29] |= 0x40;
|
||||
@ -373,7 +373,7 @@ void EnDnp_Init(Actor* thisx, PlayState* play) {
|
||||
Actor_SetScale(&this->actor, 0.0085f);
|
||||
SubS_UpdateFlags(&this->unk_322, 3, 7);
|
||||
this->unk_322 |= 0x400;
|
||||
if ((play->sceneNum == SCENE_MITURIN) && (gSaveContext.save.weekEventReg[29] & 0x40)) {
|
||||
if ((play->sceneId == SCENE_MITURIN) && (gSaveContext.save.weekEventReg[29] & 0x40)) {
|
||||
this->unk_322 |= 0x20;
|
||||
func_80B3CC38(this, 1);
|
||||
}
|
||||
|
@ -290,7 +290,7 @@ const ActorInit En_Door_InitVars = {
|
||||
};
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ s16 sceneNum;
|
||||
/* 0x00 */ s16 sceneId;
|
||||
/* 0x02 */ u8 dListIndex;
|
||||
/* 0x04 */ s16 objectId;
|
||||
} EnDoorInfo;
|
||||
@ -405,7 +405,7 @@ void EnDoor_Init(Actor* thisx, PlayState* play2) {
|
||||
objectInfo = &sObjInfo[17 + this->switchFlag];
|
||||
} else {
|
||||
for (i = 0; i < ARRAY_COUNT(sObjInfo) - 34; i++, objectInfo++) {
|
||||
if (play->sceneNum == objectInfo->sceneNum) {
|
||||
if (play->sceneId == objectInfo->sceneId) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -903,13 +903,13 @@ void func_8088E850(EnElf* this, PlayState* play) {
|
||||
func_8088D660(this, &nextPos, 0.2f);
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 0) &&
|
||||
if ((play->sceneId == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 0) &&
|
||||
(play->csCtx.currentCsIndex == 0) &&
|
||||
((play->csCtx.frames == 149) || (play->csCtx.frames == 381) || (play->csCtx.frames == 591))) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EV_WHITE_FAIRY_DASH);
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_SECOM) && (gSaveContext.sceneSetupIndex == 0) &&
|
||||
if ((play->sceneId == SCENE_SECOM) && (gSaveContext.sceneSetupIndex == 0) &&
|
||||
(play->csCtx.currentCsIndex == 4) && (play->csCtx.frames == 95)) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EV_WHITE_FAIRY_DASH);
|
||||
}
|
||||
|
@ -205,13 +205,13 @@ s32 func_80A39C1C(PlayState* play, s32 arg1) {
|
||||
}
|
||||
|
||||
if (arg1 == 0) {
|
||||
if (gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 & 1) {
|
||||
if (gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 & 1) {
|
||||
return 25;
|
||||
}
|
||||
return 24;
|
||||
}
|
||||
|
||||
temp_v1 = (gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 >> (((arg1 - 1) * 5) + 1)) & 0x1F;
|
||||
temp_v1 = (gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 >> (((arg1 - 1) * 5) + 1)) & 0x1F;
|
||||
if (temp_v1 < 10) {
|
||||
temp_v1 = 10;
|
||||
} else if (temp_v1 > 25) {
|
||||
@ -227,13 +227,13 @@ void func_80A39CD4(PlayState* play, s32 arg1, s32 arg2) {
|
||||
|
||||
if (arg1 == 0) {
|
||||
if (arg2 == 25) {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 |= 1;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 |= 1;
|
||||
} else {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 &= ~1;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 &= ~1;
|
||||
}
|
||||
} else {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 &= ~(0x1F << ((arg1 * 5) - 4));
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 |= arg2 << ((arg1 * 5) - 4);
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 &= ~(0x1F << ((arg1 * 5) - 4));
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 |= arg2 << ((arg1 * 5) - 4);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -315,7 +315,8 @@ void EnFall_Setup(EnFall* this, PlayState* play) {
|
||||
void EnFall_CrashingMoon_HandleGiantsCutscene(EnFall* this, PlayState* play) {
|
||||
static s32 sGiantsCutsceneState = 0;
|
||||
|
||||
if (play->sceneNum == SCENE_00KEIKOKU && gSaveContext.sceneSetupIndex == 1 && play->csCtx.currentCsIndex == 0) {
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(play->csCtx.currentCsIndex == 0)) {
|
||||
switch (sGiantsCutsceneState) {
|
||||
case 0:
|
||||
if (play->csCtx.state != 0) {
|
||||
@ -408,7 +409,7 @@ void EnFall_StoppedClosedMouthMoon_PerformCutsceneActions(EnFall* this, PlayStat
|
||||
}
|
||||
}
|
||||
|
||||
if (play->sceneNum == SCENE_OKUJOU && gSaveContext.sceneSetupIndex == 2) {
|
||||
if (play->sceneId == SCENE_OKUJOU && gSaveContext.sceneSetupIndex == 2) {
|
||||
switch (play->csCtx.currentCsIndex) {
|
||||
case 0:
|
||||
switch (play->csCtx.frames) {
|
||||
@ -452,7 +453,7 @@ void EnFall_StoppedClosedMouthMoon_PerformCutsceneActions(EnFall* this, PlayStat
|
||||
}
|
||||
|
||||
void EnFall_ClockTowerOrTitleScreenMoon_PerformCutsceneActions(EnFall* this, PlayState* play) {
|
||||
if (play->csCtx.state != 0 && play->sceneNum == SCENE_OKUJOU) {
|
||||
if (play->csCtx.state != 0 && play->sceneId == SCENE_OKUJOU) {
|
||||
func_800B9010(&this->actor, NA_SE_EV_MOON_FALL - SFX_FLAG);
|
||||
}
|
||||
}
|
||||
@ -574,7 +575,7 @@ void EnFall_Fireball_SetPerVertexAlpha(f32 fireballAlpha) {
|
||||
void EnFall_Fireball_Update(Actor* thisx, PlayState* play) {
|
||||
EnFall* this = THIS;
|
||||
|
||||
if (play->sceneNum == SCENE_00KEIKOKU && gSaveContext.sceneSetupIndex == 0 && play->csCtx.currentCsIndex == 2) {
|
||||
if (play->sceneId == SCENE_00KEIKOKU && gSaveContext.sceneSetupIndex == 0 && play->csCtx.currentCsIndex == 2) {
|
||||
play->skyboxCtx.rotY -= 0.05f;
|
||||
}
|
||||
|
||||
|
@ -167,7 +167,7 @@ Actor* func_8091D944(EnFish* this, PlayState* play) {
|
||||
}
|
||||
|
||||
s32 func_8091DA14(EnFish* this, PlayState* play) {
|
||||
return play->sceneNum == SCENE_LABO && func_8091D944(this, play);
|
||||
return (play->sceneId == SCENE_LABO) && func_8091D944(this, play);
|
||||
}
|
||||
|
||||
void EnFish_Init(Actor* thisx, PlayState* play) {
|
||||
@ -853,7 +853,8 @@ void func_8091F5A4(Actor* thisx, PlayState* play) {
|
||||
func_8091D7C4(this);
|
||||
Actor_MoveWithGravity(&this->actor);
|
||||
if (this->unk_248 != 0) {
|
||||
u32 temp = (play->sceneNum ^ SCENE_LABO) != 0;
|
||||
u32 temp = (play->sceneId != SCENE_LABO);
|
||||
|
||||
phi_f0 = BREG(1) + 10.0f;
|
||||
|
||||
if (temp) {
|
||||
|
@ -213,15 +213,15 @@ void func_80B3B294(EnGg2* this, PlayState* play) {
|
||||
Vec3s sp30;
|
||||
|
||||
if (this->unk_2F1 == 0) {
|
||||
if (play->sceneNum == SCENE_11GORONNOSATO) {
|
||||
if (play->sceneId == SCENE_11GORONNOSATO) {
|
||||
gSaveContext.save.weekEventReg[20] |= 4;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~8;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~0x10;
|
||||
} else if (play->sceneNum == SCENE_17SETUGEN) {
|
||||
} else if (play->sceneId == SCENE_17SETUGEN) {
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~4;
|
||||
gSaveContext.save.weekEventReg[20] |= 8;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~0x10;
|
||||
} else if (play->sceneNum == SCENE_10YUKIYAMANOMURA) {
|
||||
} else if (play->sceneId == SCENE_10YUKIYAMANOMURA) {
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~4;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~8;
|
||||
gSaveContext.save.weekEventReg[20] |= 0x10;
|
||||
@ -239,15 +239,15 @@ void func_80B3B294(EnGg2* this, PlayState* play) {
|
||||
this->unk_1DC++;
|
||||
} else {
|
||||
this->unk_2F1 = 1;
|
||||
if (play->sceneNum == SCENE_11GORONNOSATO) {
|
||||
if (play->sceneId == SCENE_11GORONNOSATO) {
|
||||
gSaveContext.save.weekEventReg[20] |= 4;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~8;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~0x10;
|
||||
} else if (play->sceneNum == SCENE_17SETUGEN) {
|
||||
} else if (play->sceneId == SCENE_17SETUGEN) {
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~4;
|
||||
gSaveContext.save.weekEventReg[20] |= 8;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~0x10;
|
||||
} else if (play->sceneNum == SCENE_10YUKIYAMANOMURA) {
|
||||
} else if (play->sceneId == SCENE_10YUKIYAMANOMURA) {
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~4;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~8;
|
||||
gSaveContext.save.weekEventReg[20] |= 0x10;
|
||||
@ -380,14 +380,14 @@ void EnGg2_Init(Actor* thisx, PlayState* play2) {
|
||||
this->unk_2EC = 20;
|
||||
this->unk_2EA = 0;
|
||||
|
||||
if (play->sceneNum == SCENE_11GORONNOSATO) {
|
||||
if (play->sceneId == SCENE_11GORONNOSATO) {
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~4;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~8;
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~0x10;
|
||||
this->unk_2EE = 0;
|
||||
Actor_ChangeAnimationByInfo(&this->skelAnime, D_80B3BF00, 0);
|
||||
this->actionFunc = func_80B3AFB0;
|
||||
} else if (play->sceneNum == SCENE_17SETUGEN) {
|
||||
} else if (play->sceneId == SCENE_17SETUGEN) {
|
||||
if ((gSaveContext.save.weekEventReg[20] & 4) && !(gSaveContext.save.weekEventReg[20] & 8) &&
|
||||
!(gSaveContext.save.weekEventReg[20] & 0x10)) {
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~4;
|
||||
@ -397,7 +397,7 @@ void EnGg2_Init(Actor* thisx, PlayState* play2) {
|
||||
} else {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
}
|
||||
} else if (play->sceneNum == SCENE_10YUKIYAMANOMURA) {
|
||||
} else if (play->sceneId == SCENE_10YUKIYAMANOMURA) {
|
||||
if (!(gSaveContext.save.weekEventReg[20] & 4) && (gSaveContext.save.weekEventReg[20] & 8) &&
|
||||
!(gSaveContext.save.weekEventReg[20] & 0x10)) {
|
||||
gSaveContext.save.weekEventReg[20] &= (u8)~8;
|
||||
|
@ -118,7 +118,7 @@ Color_RGBA8 D_80B533A4 = { 50, 150, 150, 0 };
|
||||
u16 func_80B50410(EnGk* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if (play->sceneNum == SCENE_17SETUGEN2) {
|
||||
if (play->sceneId == SCENE_17SETUGEN2) {
|
||||
if (player->transformation == PLAYER_FORM_GORON) {
|
||||
if (!(gSaveContext.save.weekEventReg[40] & 0x80)) {
|
||||
switch (this->unk_31C) {
|
||||
@ -164,7 +164,7 @@ u16 func_80B50410(EnGk* this, PlayState* play) {
|
||||
this->unk_1E4 |= 1;
|
||||
return 0xE81;
|
||||
}
|
||||
} else if (play->sceneNum == SCENE_GORONRACE) {
|
||||
} else if (play->sceneId == SCENE_GORONRACE) {
|
||||
if (player->transformation == PLAYER_FORM_GORON) {
|
||||
if (!(gSaveContext.save.weekEventReg[41] & 4)) {
|
||||
if (this->unk_31C == 0xE88) {
|
||||
@ -1018,7 +1018,7 @@ void EnGk_Init(Actor* thisx, PlayState* play) {
|
||||
if (ENGK_GET_F(&this->actor) == ENGK_F_1) {
|
||||
this->unk_2E4 = 5;
|
||||
Actor_ChangeAnimationByInfo(&this->skelAnime, sAnimationInfo, 5);
|
||||
if (play->sceneNum == SCENE_17SETUGEN2) {
|
||||
if (play->sceneId == SCENE_17SETUGEN2) {
|
||||
if (Flags_GetSwitch(play, ENGK_GET_3F00(&this->actor))) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
} else {
|
||||
@ -1026,7 +1026,7 @@ void EnGk_Init(Actor* thisx, PlayState* play) {
|
||||
this->path = SubS_GetPathByIndex(play, ENGK_GET_F0(&this->actor), 0xF);
|
||||
this->actionFunc = func_80B51760;
|
||||
}
|
||||
} else if (play->sceneNum == SCENE_GORONRACE) {
|
||||
} else if (play->sceneId == SCENE_GORONRACE) {
|
||||
if (gSaveContext.save.weekEventReg[33] & 0x80) {
|
||||
if (gSaveContext.save.entrance == ENTRANCE(GORON_RACETRACK, 1)) {
|
||||
this->actionFunc = func_80B51760;
|
||||
|
@ -762,7 +762,7 @@ s32 func_8094EFC4(EnGm* this, PlayState* play) {
|
||||
|
||||
if (play->csCtx.state != 0) {
|
||||
if (this->unk_3F8 == 0) {
|
||||
if ((play->sceneNum == SCENE_MILK_BAR) && (gSaveContext.sceneSetupIndex == 2)) {
|
||||
if ((play->sceneId == SCENE_MILK_BAR) && (gSaveContext.sceneSetupIndex == 2)) {
|
||||
func_8094E054(this, play, 0);
|
||||
this->unk_258 = 255;
|
||||
}
|
||||
@ -771,7 +771,7 @@ s32 func_8094EFC4(EnGm* this, PlayState* play) {
|
||||
}
|
||||
ret = true;
|
||||
} else if (this->unk_3F8 != 0) {
|
||||
if (play->sceneNum == SCENE_MILK_BAR) {
|
||||
if (play->sceneId == SCENE_MILK_BAR) {
|
||||
this->unk_400 = 0;
|
||||
}
|
||||
this->unk_3F8 = 0;
|
||||
|
@ -537,7 +537,7 @@ s32 func_80A1222C(EnGo* this, PlayState* play) {
|
||||
if (((player->transformation == PLAYER_FORM_GORON) && (play->msgCtx.ocarinaMode == 3) &&
|
||||
(play->msgCtx.lastPlayedSong == OCARINA_SONG_GORON_LULLABY) && (this->unk_3EC == 0) &&
|
||||
(this->actor.xzDistToPlayer < 400.0f)) ||
|
||||
(!(gSaveContext.save.weekEventReg[22] & 4) && (play->sceneNum == SCENE_16GORON_HOUSE) &&
|
||||
(!(gSaveContext.save.weekEventReg[22] & 4) && (play->sceneId == SCENE_16GORON_HOUSE) &&
|
||||
(gSaveContext.sceneSetupIndex == 0) && (this->unk_3EC == 0) && (play->csCtx.currentCsIndex == 1))) {
|
||||
ret = true;
|
||||
}
|
||||
@ -710,7 +710,7 @@ s32 func_80A12868(EnGo* this, PlayState* play) {
|
||||
|
||||
s32 func_80A12954(EnGo* this, PlayState* play) {
|
||||
if ((ENGO_GET_F(&this->actor) == ENGO_F_4) && (play->csCtx.state != 0) && (this->actor.draw != NULL) &&
|
||||
(play->sceneNum == SCENE_10YUKIYAMANOMURA2) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(play->sceneId == SCENE_10YUKIYAMANOMURA2) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(play->csCtx.currentCsIndex == 0)) {
|
||||
if (this->unk_3F0 == 0) {
|
||||
this->actor.flags &= ~ACTOR_FLAG_1;
|
||||
@ -1411,7 +1411,7 @@ void func_80A144F4(EnGo* this, PlayState* play) {
|
||||
|
||||
void func_80A145AC(EnGo* this, PlayState* play) {
|
||||
if ((ENGO_GET_70(&this->actor) == ENGO_70_1) &&
|
||||
(((play->sceneNum == SCENE_10YUKIYAMANOMURA2) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(((play->sceneId == SCENE_10YUKIYAMANOMURA2) && (gSaveContext.sceneSetupIndex == 1) &&
|
||||
(play->csCtx.currentCsIndex == 0)) ||
|
||||
!(gSaveContext.save.weekEventReg[21] & 8))) {
|
||||
this->actor.child = func_80A13400(this, play);
|
||||
|
@ -330,7 +330,7 @@ void func_80B23934(EnHanabi* this, PlayState* play) {
|
||||
}
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 7) &&
|
||||
if ((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 7) &&
|
||||
(play->csCtx.currentCsIndex == 0) && (play->csCtx.frames == 610)) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_EV_KYOJIN_GROAN);
|
||||
}
|
||||
|
@ -170,7 +170,7 @@ void EnHoll_VisibleIdle(EnHoll* this, PlayState* play) {
|
||||
|
||||
EnHoll_SetPlayerSide(play, this, &transformedPlayerPos);
|
||||
playerDistFromCentralPlane = fabsf(transformedPlayerPos.z);
|
||||
if (play->sceneNum == SCENE_IKANA) {
|
||||
if (play->sceneId == SCENE_IKANA) {
|
||||
enHollBottom = EN_HOLL_BOTTOM_IKANA;
|
||||
enHollHalfwidth = EN_HOLL_HALFWIDTH_IKANA;
|
||||
}
|
||||
@ -209,7 +209,7 @@ void EnHoll_VisibleIdle(EnHoll* this, PlayState* play) {
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if ((this->type == EN_HOLL_TYPE_DEFAULT) && (play->sceneNum == SCENE_26SARUNOMORI) &&
|
||||
} else if ((this->type == EN_HOLL_TYPE_DEFAULT) && (play->sceneId == SCENE_26SARUNOMORI) &&
|
||||
(sInstancePlayingSound == NULL)) {
|
||||
sInstancePlayingSound = this;
|
||||
}
|
||||
@ -225,7 +225,7 @@ void EnHoll_TransparentIdle(EnHoll* this, PlayState* play) {
|
||||
|
||||
Actor_OffsetOfPointInActorCoords(&this->actor, &transformedPlayerPos,
|
||||
useViewEye ? &play->view.eye : &player->actor.world.pos);
|
||||
enHollTop = (play->sceneNum == SCENE_PIRATE) ? EN_HOLL_TOP_PIRATE : EN_HOLL_TOP_DEFAULT;
|
||||
enHollTop = (play->sceneId == SCENE_PIRATE) ? EN_HOLL_TOP_PIRATE : EN_HOLL_TOP_DEFAULT;
|
||||
|
||||
if ((transformedPlayerPos.y > EN_HOLL_BOTTOM_DEFAULT) && (transformedPlayerPos.y < enHollTop) &&
|
||||
(fabsf(transformedPlayerPos.x) < EN_HOLL_HALFWIDTH_TRANSPARENT)) {
|
||||
|
@ -792,7 +792,7 @@ void EnHorse_Init(Actor* thisx, PlayState* play2) {
|
||||
this->stateFlags = 0;
|
||||
}
|
||||
|
||||
if (((play->sceneNum == SCENE_KOEPONARACE) && (GET_RACE_FLAGS == 1)) ||
|
||||
if (((play->sceneId == SCENE_KOEPONARACE) && (GET_RACE_FLAGS == 1)) ||
|
||||
((gSaveContext.save.entrance == ENTRANCE(ROMANI_RANCH, 0)) && Cutscene_GetSceneSetupIndex(play))) {
|
||||
this->stateFlags |= ENHORSE_FLAG_25;
|
||||
}
|
||||
@ -878,7 +878,7 @@ void EnHorse_Init(Actor* thisx, PlayState* play2) {
|
||||
func_80112AFC(play);
|
||||
} else if (thisx->params == ENHORSE_14) {
|
||||
func_808846F0(this, play);
|
||||
if ((play->sceneNum == SCENE_LOST_WOODS) && !Cutscene_IsPlaying(play)) {
|
||||
if ((play->sceneId == SCENE_LOST_WOODS) && !Cutscene_IsPlaying(play)) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
}
|
||||
} else if (thisx->params == ENHORSE_16) {
|
||||
@ -3498,7 +3498,7 @@ void EnHorse_ObstructMovement(EnHorse* this, PlayState* play, s32 obstacleType,
|
||||
this->unk_1EC |= 0x80;
|
||||
this->actor.world.pos = this->actor.prevPos;
|
||||
this->actor.speedXZ = 0.0f;
|
||||
} else if ((play->sceneNum != SCENE_KOEPONARACE) || (this->unk_1EC & 2)) {
|
||||
} else if ((play->sceneId != SCENE_KOEPONARACE) || (this->unk_1EC & 2)) {
|
||||
this->unk_1EC &= ~2;
|
||||
this->actor.world.pos = this->lastPos;
|
||||
this->stateFlags |= ENHORSE_OBSTACLE;
|
||||
@ -3822,7 +3822,7 @@ void EnHorse_UpdateBgCheckInfo(EnHorse* this, PlayState* play) {
|
||||
}
|
||||
|
||||
if (((movingFast == false) && (intersectDist < 80.0f)) || ((movingFast == true) && (intersectDist < 150.0f))) {
|
||||
if ((play->sceneNum != SCENE_KOEPONARACE) && (Math_CosS(sp7E) < 0.9f) && (this->playerControlled == true)) {
|
||||
if ((play->sceneId != SCENE_KOEPONARACE) && (Math_CosS(sp7E) < 0.9f) && (this->playerControlled == true)) {
|
||||
if (movingFast == false) {
|
||||
this->stateFlags |= ENHORSE_FORCE_REVERSING;
|
||||
} else if (movingFast == true) {
|
||||
@ -3876,7 +3876,7 @@ void EnHorse_UpdateBgCheckInfo(EnHorse* this, PlayState* play) {
|
||||
COLPOLY_GET_NORMAL(obstacleFloor->normal.z), obstacleFloor->dist,
|
||||
&this->actor.world.pos) > 40.0f)) {
|
||||
if ((movingFast == true) && (this->playerControlled == true) && (this->action != ENHORSE_ACTION_STOPPING) &&
|
||||
(play->sceneNum != SCENE_KOEPONARACE)) {
|
||||
(play->sceneId != SCENE_KOEPONARACE)) {
|
||||
this->stateFlags |= ENHORSE_FORCE_REVERSING;
|
||||
EnHorse_StartBraking(this, play);
|
||||
}
|
||||
@ -3888,7 +3888,7 @@ void EnHorse_UpdateBgCheckInfo(EnHorse* this, PlayState* play) {
|
||||
if ((temp_f0 < 0.81915206f) || SurfaceType_IsHorseBlocked(&play->colCtx, obstacleFloor, bgId) ||
|
||||
(func_800C99D4(&play->colCtx, obstacleFloor, bgId) == 7)) {
|
||||
if ((Math_CosS(sp7E) < 0.9f) && (movingFast == true) && (this->playerControlled == true) &&
|
||||
(this->action != ENHORSE_ACTION_STOPPING) && (play->sceneNum != SCENE_KOEPONARACE)) {
|
||||
(this->action != ENHORSE_ACTION_STOPPING) && (play->sceneId != SCENE_KOEPONARACE)) {
|
||||
this->stateFlags |= ENHORSE_FORCE_REVERSING;
|
||||
EnHorse_StartBraking(this, play);
|
||||
}
|
||||
@ -3951,13 +3951,13 @@ void EnHorse_UpdateBgCheckInfo(EnHorse* this, PlayState* play) {
|
||||
if ((temp_f0 < 0.81915206f) || SurfaceType_IsHorseBlocked(&play->colCtx, obstacleFloor, bgId) ||
|
||||
(func_800C99D4(&play->colCtx, obstacleFloor, bgId) == 7)) {
|
||||
if ((movingFast == true) && (this->playerControlled == true) && (this->action != ENHORSE_ACTION_STOPPING) &&
|
||||
(play->sceneNum != SCENE_KOEPONARACE)) {
|
||||
(play->sceneId != SCENE_KOEPONARACE)) {
|
||||
this->stateFlags |= ENHORSE_FORCE_REVERSING;
|
||||
EnHorse_StartBraking(this, play);
|
||||
}
|
||||
} else if (behindObstacleHeight < -70.0f) {
|
||||
if ((movingFast == true) && (this->playerControlled == true) && (this->action != ENHORSE_ACTION_STOPPING) &&
|
||||
(play->sceneNum != SCENE_KOEPONARACE)) {
|
||||
(play->sceneId != SCENE_KOEPONARACE)) {
|
||||
this->stateFlags |= ENHORSE_FORCE_REVERSING;
|
||||
EnHorse_StartBraking(this, play);
|
||||
}
|
||||
|
@ -948,7 +948,7 @@ void EnJg_Init(Actor* thisx, PlayState* play) {
|
||||
Actor_SetScale(&this->actor, 0.01f);
|
||||
|
||||
if (!EN_JG_IS_IN_GORON_SHRINE(thisx)) {
|
||||
if ((play->sceneNum == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 7) &&
|
||||
if ((play->sceneId == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 7) &&
|
||||
(play->csCtx.currentCsIndex == 0)) {
|
||||
// This is the elder that appears in the cutscene for learning the full Goron Lullaby.
|
||||
this->animIndex = EN_JG_ANIM_IDLE;
|
||||
|
@ -238,10 +238,10 @@ void EnKakasi_CheckAnimationSfx(EnKakasi* this) {
|
||||
void EnKakasi_CheckPlayerPosition(EnKakasi* this, PlayState* play) {
|
||||
Player* player = GET_PLAYER(play);
|
||||
|
||||
if (play->sceneNum == SCENE_8ITEMSHOP) {
|
||||
if (play->sceneId == SCENE_8ITEMSHOP) {
|
||||
player->actor.world.pos.x = -50.0f;
|
||||
player->actor.world.pos.z = 155.0f;
|
||||
} else if (play->sceneNum == SCENE_TENMON_DAI) {
|
||||
} else if (play->sceneId == SCENE_TENMON_DAI) {
|
||||
player->actor.world.pos.x = 60.0f;
|
||||
player->actor.world.pos.z = -190.0f;
|
||||
}
|
||||
@ -998,7 +998,7 @@ void EnKakasi_DiggingAway(EnKakasi* this, PlayState* play) {
|
||||
tempWorldPos.x += randPlusMinusPoint5Scaled(2.0f);
|
||||
tempWorldPos.z += randPlusMinusPoint5Scaled(2.0f);
|
||||
|
||||
if (play->sceneNum == SCENE_8ITEMSHOP) {
|
||||
if (play->sceneId == SCENE_8ITEMSHOP) {
|
||||
EffectSsGSplash_Spawn(play, &tempWorldPos, 0, 0, 0, randPlusMinusPoint5Scaled(100.0f) + 200.0f);
|
||||
SoundSource_PlaySfxAtFixedWorldPos(play, &tempWorldPos, 0x32, NA_SE_EV_BOMB_DROP_WATER);
|
||||
|
||||
|
@ -71,12 +71,12 @@ void EnKbt_Destroy(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
|
||||
s32 func_80B33E64(PlayState* play) {
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 & 1;
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 & 1;
|
||||
}
|
||||
|
||||
s32 func_80B33E8C(PlayState* play) {
|
||||
if ((CURRENT_DAY == 3) ||
|
||||
((CURRENT_DAY == 2) && (gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 & 2))) {
|
||||
((CURRENT_DAY == 2) && (gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 & 2))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -151,33 +151,33 @@ ObjIcePoly* EnKgy_FindIceBlock(PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80B40C74(PlayState* play) {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 |= 1;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 |= 1;
|
||||
if (CURRENT_DAY == 1) {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 |= 2;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 |= 2;
|
||||
} else {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 &= ~2;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 &= ~2;
|
||||
}
|
||||
}
|
||||
|
||||
void func_80B40D00(PlayState* play) {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 |= 4;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 |= 4;
|
||||
}
|
||||
|
||||
void func_80B40D30(PlayState* play) {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 &= ~7;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 &= ~7;
|
||||
}
|
||||
|
||||
s32 func_80B40D64(PlayState* play) {
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 & 1;
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 & 1;
|
||||
}
|
||||
|
||||
s32 func_80B40D8C(PlayState* play) {
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 & 4;
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 & 4;
|
||||
}
|
||||
|
||||
s32 func_80B40DB4(PlayState* play) {
|
||||
if ((CURRENT_DAY == 3) ||
|
||||
((CURRENT_DAY == 2) && (gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 & 2))) {
|
||||
((CURRENT_DAY == 2) && (gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 & 2))) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -120,7 +120,7 @@ void EnMk_Destroy(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
|
||||
s32 func_80959524(PlayState* play) {
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 & 7;
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 & 7;
|
||||
}
|
||||
|
||||
void func_8095954C(EnMk* this, PlayState* play) {
|
||||
|
@ -731,7 +731,7 @@ void func_80AD16A8(EnOsn* this, PlayState* play) {
|
||||
Actor_ChangeAnimationByInfo(&this->skelAnime, sAnimationInfo, this->unk_1EC);
|
||||
}
|
||||
|
||||
if ((this->unk_1EC == 5) && (play->sceneNum == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 0xB) &&
|
||||
if ((this->unk_1EC == 5) && (play->sceneId == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 0xB) &&
|
||||
(play->csCtx.frames == 400)) {
|
||||
Actor_PlaySfxAtPos(&this->actor, NA_SE_VO_OMVO00);
|
||||
}
|
||||
@ -795,7 +795,7 @@ void EnOsn_Init(Actor* thisx, PlayState* play) {
|
||||
this->unk_1EA |= 1;
|
||||
}
|
||||
this->unk_1F0 = 1;
|
||||
if (play->sceneNum == SCENE_INSIDETOWER) {
|
||||
if (play->sceneId == SCENE_INSIDETOWER) {
|
||||
if ((gSaveContext.save.entrance == ENTRANCE(CLOCK_TOWER_INTERIOR, 2)) ||
|
||||
(gSaveContext.save.entrance == ENTRANCE(CLOCK_TOWER_INTERIOR, 6))) {
|
||||
this->actionFunc = func_80AD16A8;
|
||||
|
@ -1017,7 +1017,7 @@ s32 func_80AF86F0(EnPm* this, PlayState* play) {
|
||||
s32 func_80AF87C4(EnPm* this, PlayState* play) {
|
||||
s32 ret = false;
|
||||
|
||||
if ((play->csCtx.state != 0) && (play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 9) &&
|
||||
if ((play->csCtx.state != 0) && (play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 9) &&
|
||||
(play->curSpawn == 1)) {
|
||||
if (!this->unk_380) {
|
||||
func_80AF7E98(this, 0);
|
||||
|
@ -296,7 +296,7 @@ void EnRailSkb_Init(Actor* thisx, PlayState* play) {
|
||||
this->unk_3F8 = 0;
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_BOTI) && (gSaveContext.sceneSetupIndex == 1) && (play->csCtx.currentCsIndex == 0)) {
|
||||
if ((play->sceneId == SCENE_BOTI) && (gSaveContext.sceneSetupIndex == 1) && (play->csCtx.currentCsIndex == 0)) {
|
||||
this->actor.flags |= ACTOR_FLAG_100000;
|
||||
}
|
||||
|
||||
|
@ -230,7 +230,7 @@ void EnSkb_Init(Actor* thisx, PlayState* play) {
|
||||
this->unk_3D6 = ENSKB_GET_F0(&this->actor);
|
||||
this->actor.floorHeight = this->actor.world.pos.y;
|
||||
|
||||
if ((play->sceneNum == SCENE_BOTI) && (gSaveContext.sceneSetupIndex == 1) && (play->csCtx.currentCsIndex == 0)) {
|
||||
if ((play->sceneId == SCENE_BOTI) && (gSaveContext.sceneSetupIndex == 1) && (play->csCtx.currentCsIndex == 0)) {
|
||||
this->actor.flags |= ACTOR_FLAG_100000;
|
||||
}
|
||||
|
||||
|
@ -654,7 +654,7 @@ void EnSsh_Init(Actor* thisx, PlayState* play) {
|
||||
this->actor.gravity = 0.0f;
|
||||
this->initialYaw = this->actor.world.rot.y;
|
||||
EnSsh_SetupAction(this, EnSsh_Start);
|
||||
if (Inventory_GetSkullTokenCount(play->sceneNum) >= 30) {
|
||||
if (Inventory_GetSkullTokenCount(play->sceneId) >= 30) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
}
|
||||
}
|
||||
|
@ -113,7 +113,7 @@ void EnSth_Init(Actor* thisx, PlayState* play) {
|
||||
break;
|
||||
|
||||
case ENSTH_F_2:
|
||||
if (Inventory_GetSkullTokenCount(play->sceneNum) >= 30) {
|
||||
if (Inventory_GetSkullTokenCount(play->sceneId) >= 30) {
|
||||
this->actionFunc = func_80B67DA0;
|
||||
} else {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
@ -148,7 +148,7 @@ void EnSth_Init(Actor* thisx, PlayState* play) {
|
||||
break;
|
||||
|
||||
case ENSTH_F_5:
|
||||
if (!(gSaveContext.save.weekEventReg[13] & 0x20) || (Inventory_GetSkullTokenCount(play->sceneNum) < 30)) {
|
||||
if (!(gSaveContext.save.weekEventReg[13] & 0x20) || (Inventory_GetSkullTokenCount(play->sceneId) < 30)) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
return;
|
||||
}
|
||||
@ -446,7 +446,7 @@ void func_80B67984(EnSth* this, PlayState* play) {
|
||||
sp1E = 0x918;
|
||||
}
|
||||
func_80B670A4(this, 2);
|
||||
} else if (Inventory_GetSkullTokenCount(play->sceneNum) >= 30) {
|
||||
} else if (Inventory_GetSkullTokenCount(play->sceneId) >= 30) {
|
||||
if (INV_CONTENT(ITEM_MASK_TRUTH) == ITEM_MASK_TRUTH) {
|
||||
this->unk_29C |= 4;
|
||||
sp1E = 0x919;
|
||||
@ -559,7 +559,7 @@ void func_80B67DA0(EnSth* this, PlayState* play) {
|
||||
void func_80B67E20(Actor* thisx, PlayState* play) {
|
||||
EnSth* this = THIS;
|
||||
|
||||
if (Inventory_GetSkullTokenCount(play->sceneNum) >= 30) {
|
||||
if (Inventory_GetSkullTokenCount(play->sceneId) >= 30) {
|
||||
this->actor.update = func_80B680A8;
|
||||
this->actor.draw = func_80B6849C;
|
||||
this->actor.flags |= ACTOR_FLAG_1;
|
||||
@ -580,7 +580,7 @@ void EnSth_Update(Actor* thisx, PlayState* play) {
|
||||
Animation_PlayLoop(&this->skelAnime, &ovl_En_Sth_Anim_0045B4);
|
||||
this->unk_29A = 1;
|
||||
if ((gSaveContext.save.weekEventReg[34] & 0x10) || (gSaveContext.save.weekEventReg[34] & 0x20) ||
|
||||
(gSaveContext.save.weekEventReg[34] & 0x40) || (Inventory_GetSkullTokenCount(play->sceneNum) >= 30)) {
|
||||
(gSaveContext.save.weekEventReg[34] & 0x40) || (Inventory_GetSkullTokenCount(play->sceneId) >= 30)) {
|
||||
func_80B670A4(this, 3);
|
||||
}
|
||||
} else {
|
||||
@ -610,7 +610,7 @@ void EnSth_Update(Actor* thisx, PlayState* play) {
|
||||
break;
|
||||
}
|
||||
|
||||
if ((ENSTH_GET_F(&this->actor) == ENSTH_F_4) && (Inventory_GetSkullTokenCount(play->sceneNum) < 30)) {
|
||||
if ((ENSTH_GET_F(&this->actor) == ENSTH_F_4) && (Inventory_GetSkullTokenCount(play->sceneId) < 30)) {
|
||||
this->actor.update = func_80B67E20;
|
||||
this->actor.draw = NULL;
|
||||
this->actor.flags &= ~ACTOR_FLAG_1;
|
||||
|
@ -942,7 +942,7 @@ void func_80BAC6E8(EnSuttari* this, PlayState* play) {
|
||||
this->morphTable, 16);
|
||||
this->actor.draw = EnSuttari_Draw;
|
||||
this->actor.flags |= ACTOR_FLAG_1;
|
||||
if (play->sceneNum == SCENE_IKANA) {
|
||||
if (play->sceneId == SCENE_IKANA) {
|
||||
this->flags1 |= 1;
|
||||
if (gSaveContext.save.day == 1 || gSaveContext.save.day == 2) {
|
||||
this->animIndex = 2;
|
||||
@ -958,7 +958,7 @@ void func_80BAC6E8(EnSuttari* this, PlayState* play) {
|
||||
this->actionFunc = func_80BACEE0;
|
||||
return;
|
||||
}
|
||||
} else if (play->sceneNum == SCENE_BACKTOWN) {
|
||||
} else if (play->sceneId == SCENE_BACKTOWN) {
|
||||
if (gSaveContext.save.time >= CLOCK_TIME(0, 20) && gSaveContext.save.time < CLOCK_TIME(6, 00)) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
}
|
||||
@ -974,7 +974,7 @@ void func_80BAC6E8(EnSuttari* this, PlayState* play) {
|
||||
Actor_ChangeAnimationByInfo(&this->skelAnime, sAnimationInfo, this->animIndex);
|
||||
this->actionFunc = func_80BAD004;
|
||||
return;
|
||||
} else if (play->sceneNum == SCENE_ICHIBA) {
|
||||
} else if (play->sceneId == SCENE_ICHIBA) {
|
||||
if (gSaveContext.save.weekEventReg[33] & 8) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
return;
|
||||
@ -984,7 +984,7 @@ void func_80BAC6E8(EnSuttari* this, PlayState* play) {
|
||||
this->flags1 |= 2;
|
||||
this->actionFunc = func_80BAD5F8;
|
||||
return;
|
||||
} else if (play->sceneNum == SCENE_AYASHIISHOP) {
|
||||
} else if (play->sceneId == SCENE_AYASHIISHOP) {
|
||||
if (gSaveContext.save.weekEventReg[33] & 8) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
return;
|
||||
@ -1461,7 +1461,7 @@ void EnSuttari_Init(Actor* thisx, PlayState* play) {
|
||||
void EnSuttari_Destroy(Actor* thisx, PlayState* play) {
|
||||
EnSuttari* this = THIS;
|
||||
|
||||
if ((play->sceneNum == SCENE_BACKTOWN) && !(this->flags2 & 4)) {
|
||||
if ((play->sceneId == SCENE_BACKTOWN) && !(this->flags2 & 4)) {
|
||||
Audio_QueueSeqCmd(0x101400FF);
|
||||
}
|
||||
Collider_DestroyCylinder(play, &this->collider);
|
||||
|
@ -179,7 +179,7 @@ void EnSyatekiMan_Init(Actor* thisx, PlayState* play) {
|
||||
|
||||
this->actor.targetMode = 1;
|
||||
Actor_SetScale(&this->actor, 0.01f);
|
||||
if (play->sceneNum == SCENE_SYATEKI_MORI) {
|
||||
if (play->sceneId == SCENE_SYATEKI_MORI) {
|
||||
SkelAnime_InitFlex(play, &this->skelAnime, &gBurlyGuySkel, &gSwampShootingGalleryManHeadScratchLoopAnim,
|
||||
this->jointTable, this->morphTable, BURLY_GUY_LIMB_MAX);
|
||||
} else {
|
||||
@ -205,7 +205,7 @@ void EnSyatekiMan_Init(Actor* thisx, PlayState* play) {
|
||||
this->eyeIndex = 0;
|
||||
this->blinkTimer = 0;
|
||||
|
||||
if (play->sceneNum == SCENE_SYATEKI_MORI) {
|
||||
if (play->sceneId == SCENE_SYATEKI_MORI) {
|
||||
this->path = path;
|
||||
EnSyatekiMan_Swamp_SpawnTargetActors(this, play, sSwampTargetActorLists[this->swampTargetActorListIndex],
|
||||
actorListLength);
|
||||
@ -247,9 +247,9 @@ s32 EnSyatekiMan_MovePlayerToPos(PlayState* play, Vec3f pos) {
|
||||
}
|
||||
|
||||
void EnSyatekiMan_SetupIdle(EnSyatekiMan* this, PlayState* play) {
|
||||
if (play->sceneNum == SCENE_SYATEKI_MORI) {
|
||||
if (play->sceneId == SCENE_SYATEKI_MORI) {
|
||||
this->actionFunc = EnSyatekiMan_Swamp_Idle;
|
||||
} else if (play->sceneNum == SCENE_SYATEKI_MIZU) {
|
||||
} else if (play->sceneId == SCENE_SYATEKI_MIZU) {
|
||||
this->actionFunc = EnSyatekiMan_Town_Idle;
|
||||
}
|
||||
}
|
||||
@ -1447,7 +1447,7 @@ void EnSyatekiMan_Update(Actor* thisx, PlayState* play) {
|
||||
s32 EnSyatekiMan_OverrideLimbDraw(PlayState* play, s32 limbIndex, Gfx** dList, Vec3f* pos, Vec3s* rot, Actor* thisx) {
|
||||
EnSyatekiMan* this = THIS;
|
||||
|
||||
if ((play->sceneNum == SCENE_SYATEKI_MIZU) && (limbIndex == BURLY_GUY_LIMB_HEAD)) {
|
||||
if ((play->sceneId == SCENE_SYATEKI_MIZU) && (limbIndex == BURLY_GUY_LIMB_HEAD)) {
|
||||
*dList = gTownShootingGalleryManHeadDL;
|
||||
}
|
||||
|
||||
@ -1481,7 +1481,7 @@ void EnSyatekiMan_Draw(Actor* thisx, PlayState* play) {
|
||||
EnSyatekiMan* this = THIS;
|
||||
s32 pad;
|
||||
|
||||
if (play->sceneNum == SCENE_SYATEKI_MIZU) {
|
||||
if (play->sceneId == SCENE_SYATEKI_MIZU) {
|
||||
sEyeTextures[0] = gTownShootingGalleryManEyeOpenTex;
|
||||
sEyeTextures[1] = gTownShootingGalleryManEyeClosedTex;
|
||||
sEyeTextures[2] = gTownShootingGalleryManEyeClosedTex;
|
||||
|
@ -436,7 +436,7 @@ void func_80A42AB8(EnTest4* this, PlayState* play) {
|
||||
if (CURRENT_DAY == 3) {
|
||||
if ((this->nextBellTime == CLOCK_TIME(0, 0)) &&
|
||||
((gSaveContext.save.inventory.items[SLOT_OCARINA] == ITEM_NONE) ||
|
||||
(play->sceneNum == SCENE_CLOCKTOWER))) {
|
||||
(play->sceneId == SCENE_CLOCKTOWER))) {
|
||||
s32 playerParams;
|
||||
u32 entrance = gSaveContext.save.entrance;
|
||||
|
||||
@ -448,7 +448,7 @@ void func_80A42AB8(EnTest4* this, PlayState* play) {
|
||||
Play_SetRespawnData(&play->state, RESPAWN_MODE_RETURN, entrance, player->unk_3CE, playerParams,
|
||||
&player->unk_3C0, player->unk_3CC);
|
||||
|
||||
if ((play->sceneNum == SCENE_TENMON_DAI) || (play->sceneNum == SCENE_00KEIKOKU)) {
|
||||
if ((play->sceneId == SCENE_TENMON_DAI) || (play->sceneId == SCENE_00KEIKOKU)) {
|
||||
play->nextEntrance = ENTRANCE(TERMINA_FIELD, 0);
|
||||
} else {
|
||||
play->nextEntrance = ENTRANCE(SOUTH_CLOCK_TOWN, 0);
|
||||
|
@ -658,7 +658,7 @@ void func_80AF2350(EnTest7* this, PlayState* play) {
|
||||
|
||||
this->unk_148.unk_10 -= 0x2EE0;
|
||||
|
||||
if (play->sceneNum == SCENE_SECOM) {
|
||||
if (play->sceneId == SCENE_SECOM) {
|
||||
play->nextEntrance = ENTRANCE(IKANA_CANYON, 6);
|
||||
} else if (ENTEST7_GET(&this->actor) == ENTEST7_26) {
|
||||
func_80169F78(&play->state);
|
||||
|
@ -284,7 +284,7 @@ void func_80ACA840(EnTimeTag* this, PlayState* play) {
|
||||
s16 temp_ft4;
|
||||
s16 temp_hi;
|
||||
|
||||
if ((play->sceneNum != SCENE_YADOYA) || (INV_CONTENT(ITEM_ROOM_KEY) != ITEM_ROOM_KEY)) {
|
||||
if ((play->sceneId != SCENE_YADOYA) || (INV_CONTENT(ITEM_ROOM_KEY) != ITEM_ROOM_KEY)) {
|
||||
temp_ft4 = gSaveContext.save.time * (24.0f / 0x10000); // TIME_TO_HOURS_F
|
||||
temp_hi = (s32)TIME_TO_MINUTES_F(gSaveContext.save.time) % 60;
|
||||
if (gSaveContext.save.weekEventReg[63] & 1) {
|
||||
|
@ -184,15 +184,15 @@ void EnToto_Init(Actor* thisx, PlayState* play) {
|
||||
|
||||
Actor_ProcessInitChain(&this->actor, sInitChain);
|
||||
Collider_InitAndSetCylinder(play, &this->collider, &this->actor, &sCylinderInit);
|
||||
if (play->sceneNum == SCENE_MILK_BAR &&
|
||||
(gSaveContext.save.time >= CLOCK_TIME(6, 0) && gSaveContext.save.time < CLOCK_TIME(21, 30))) {
|
||||
if ((play->sceneId == SCENE_MILK_BAR) && (gSaveContext.save.time >= CLOCK_TIME(6, 0)) &&
|
||||
(gSaveContext.save.time < CLOCK_TIME(21, 30))) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
return;
|
||||
}
|
||||
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 30.0f);
|
||||
this->actor.bgCheckFlags |= 0x400;
|
||||
SkelAnime_InitFlex(play, &this->skelAnime, &object_zm_Skel_00A978,
|
||||
((play->sceneNum == SCENE_SONCHONOIE) ? &object_zm_Anim_003AA8 : &object_zm_Anim_00C880),
|
||||
((play->sceneId == SCENE_SONCHONOIE) ? &object_zm_Anim_003AA8 : &object_zm_Anim_00C880),
|
||||
this->jointTable, this->morphTable, 18);
|
||||
func_80BA36C0(this, play, 0);
|
||||
this->actor.shape.rot.x = 0;
|
||||
@ -220,7 +220,7 @@ void func_80BA383C(EnToto* this, PlayState* play) {
|
||||
void func_80BA3930(EnToto* this, PlayState* play) {
|
||||
AnimationHeader* animationHeader = &object_zm_Anim_00C880;
|
||||
|
||||
if (play->sceneNum == SCENE_SONCHONOIE) {
|
||||
if (play->sceneId == SCENE_SONCHONOIE) {
|
||||
animationHeader = &object_zm_Anim_003AA8;
|
||||
}
|
||||
Animation_MorphToLoop(&this->skelAnime, animationHeader, -4.0f);
|
||||
@ -242,7 +242,7 @@ void func_80BA39C8(EnToto* this, PlayState* play) {
|
||||
func_80BA383C(this, play);
|
||||
if (Actor_ProcessTalkRequest(&this->actor, &play->state)) {
|
||||
func_80BA36C0(this, play, 1);
|
||||
if (play->sceneNum != SCENE_SONCHONOIE) {
|
||||
if (play->sceneId != SCENE_SONCHONOIE) {
|
||||
Flags_SetSwitch(play, this->actor.params & 0x7F);
|
||||
} else if (player->transformation == PLAYER_FORM_DEKU) {
|
||||
Flags_SetSwitch(play, this->actor.home.rot.x);
|
||||
@ -252,9 +252,9 @@ void func_80BA39C8(EnToto* this, PlayState* play) {
|
||||
}
|
||||
|
||||
//! @TODO: 0xED02 nor 0xED01 match CLOCK_TIME macro
|
||||
if ((play->sceneNum == SCENE_MILK_BAR &&
|
||||
!(gSaveContext.save.time >= CLOCK_TIME(6, 0) && gSaveContext.save.time < 0xED02)) ||
|
||||
(play->sceneNum != SCENE_MILK_BAR && func_80BA397C(this, 0x2000))) {
|
||||
if (((play->sceneId == SCENE_MILK_BAR) &&
|
||||
!((gSaveContext.save.time >= CLOCK_TIME(6, 0)) && (gSaveContext.save.time < 0xED02))) ||
|
||||
((play->sceneId != SCENE_MILK_BAR) && func_80BA397C(this, 0x2000))) {
|
||||
if (this->unk2B6 != 0) {
|
||||
this->text = D_80BA5044;
|
||||
this->actor.flags |= ACTOR_FLAG_10000;
|
||||
@ -262,7 +262,7 @@ void func_80BA39C8(EnToto* this, PlayState* play) {
|
||||
} else {
|
||||
this->actor.flags &= ~ACTOR_FLAG_10000;
|
||||
func_800B8614(&this->actor, play, 50.0f);
|
||||
if (play->sceneNum == SCENE_SONCHONOIE) {
|
||||
if (play->sceneId == SCENE_SONCHONOIE) {
|
||||
if (player->transformation == PLAYER_FORM_DEKU) {
|
||||
if (!Flags_GetSwitch(play, this->actor.home.rot.x)) {
|
||||
this->text = D_80BA5068;
|
||||
@ -286,7 +286,7 @@ void func_80BA39C8(EnToto* this, PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80BA3BFC(EnToto* this, PlayState* play) {
|
||||
if (play->sceneNum == SCENE_SONCHONOIE) {
|
||||
if (play->sceneId == SCENE_SONCHONOIE) {
|
||||
Animation_MorphToPlayOnce(&this->skelAnime, &object_zm_Anim_000C80, -4.0f);
|
||||
this->unk2B4 = 0;
|
||||
} else {
|
||||
|
@ -752,7 +752,7 @@ void func_80AD4DB4(EnTrt2* this, PlayState* play) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ((play->sceneNum == SCENE_20SICHITAI) || (play->sceneNum == SCENE_20SICHITAI2)) {
|
||||
if ((play->sceneId == SCENE_20SICHITAI) || (play->sceneId == SCENE_20SICHITAI2)) {
|
||||
if (gSaveContext.save.day == 2) {
|
||||
if (!(gSaveContext.save.weekEventReg[15] & 0x80)) {
|
||||
gSaveContext.save.weekEventReg[15] |= 0x80;
|
||||
@ -790,7 +790,7 @@ void func_80AD4FE4(EnTrt2* this, PlayState* play) {
|
||||
D_80AD5910[this->unk_3B2](this, play);
|
||||
Actor_MoveWithGravity(&this->actor);
|
||||
|
||||
if (play->sceneNum != SCENE_20SICHITAI) {
|
||||
if (play->sceneId != SCENE_20SICHITAI) {
|
||||
Actor_UpdateBgCheckInfo(play, &this->actor, 26.0f, 10.0f, 0.0f, 5);
|
||||
}
|
||||
|
||||
|
@ -351,8 +351,7 @@ void func_80966FEC(EnWeatherTag* this, PlayState* play) {
|
||||
D_801F4E7A = distance;
|
||||
}
|
||||
|
||||
// unique pirates fortress behavior?
|
||||
if ((play->sceneNum == SCENE_KAIZOKU) && (play->actorCtx.flags & ACTORCTX_FLAG_1)) {
|
||||
if ((play->sceneId == SCENE_KAIZOKU) && (play->actorCtx.flags & ACTORCTX_FLAG_1)) {
|
||||
EnWeatherTag_SetupAction(this, func_80967060);
|
||||
}
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ void EnZog_Init(Actor* thisx, PlayState* play) {
|
||||
|
||||
if ((ENZOG_GET_F(&this->actor) != ENZOG_F_2) && (INV_CONTENT(ITEM_MASK_ZORA) == ITEM_MASK_ZORA) &&
|
||||
((play->csCtx.currentCsIndex != 2) || (gSaveContext.sceneSetupIndex != 0) ||
|
||||
(play->sceneNum != SCENE_30GYOSON))) {
|
||||
(play->sceneId != SCENE_30GYOSON))) {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
return;
|
||||
}
|
||||
|
@ -206,13 +206,13 @@ void EnZoraegg_Destroy(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
|
||||
s32 func_80B319A8(PlayState* play) {
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 & 7;
|
||||
return gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 & 7;
|
||||
}
|
||||
|
||||
void func_80B319D0(PlayState* play, s32 arg1) {
|
||||
if ((arg1 < 8) && (arg1 >= 0)) {
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 &= ~7;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneNum].unk_14 |= arg1;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 &= ~7;
|
||||
gSaveContext.save.permanentSceneFlags[play->sceneId].unk_14 |= arg1;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -60,7 +60,7 @@ void ObjDemo_Init(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
|
||||
void func_80983634(PlayState* play) {
|
||||
if ((play->sceneNum == SCENE_CASTLE) && (func_801A8A50(0) == NA_BGM_IKANA_CASTLE)) {
|
||||
if ((play->sceneId == SCENE_CASTLE) && (func_801A8A50(0) == NA_BGM_IKANA_CASTLE)) {
|
||||
Audio_QueueSeqCmd(0x100100FF);
|
||||
}
|
||||
}
|
||||
@ -88,7 +88,7 @@ void func_80983704(ObjDemo* this, PlayState* play) {
|
||||
} else {
|
||||
ActorCutscene_StartAndSetUnkLinkFields(this->actor.cutscene, &this->actor);
|
||||
}
|
||||
if (play->sceneNum == SCENE_CASTLE) {
|
||||
if (play->sceneId == SCENE_CASTLE) {
|
||||
Audio_QueueSeqCmd(NA_BGM_IKANA_CASTLE | 0x8000);
|
||||
}
|
||||
this->actor.cutscene = ActorCutscene_GetAdditionalCutscene(this->actor.cutscene);
|
||||
|
@ -409,7 +409,7 @@ void func_80A54CEC(ObjHugebombiwa* this, PlayState* play) {
|
||||
ActorCutscene_StartAndSetUnkLinkFields(this->actor.cutscene, &this->actor);
|
||||
Flags_SetSwitch(play, ENHUGEBOMBIWA_GET_7F(&this->actor));
|
||||
if (!(ENHUGEBOMBIWA_GET_100(&this->actor)) &&
|
||||
((play->sceneNum == SCENE_17SETUGEN) || (play->sceneNum == SCENE_17SETUGEN2))) {
|
||||
((play->sceneId == SCENE_17SETUGEN) || (play->sceneId == SCENE_17SETUGEN2))) {
|
||||
gSaveContext.save.weekEventReg[19] |= 2;
|
||||
}
|
||||
|
||||
|
@ -116,7 +116,7 @@ void ObjIcePoly_Init(Actor* thisx, PlayState* play) {
|
||||
thisx->shape.rot.z = -0x500;
|
||||
|
||||
if (((this->unk_149 != OBJICEPOLY_FF_FF) && Flags_GetSwitch(play, this->unk_149)) ||
|
||||
((play->sceneNum == SCENE_KAJIYA) && (gSaveContext.save.weekEventReg[33] & 0x80))) {
|
||||
((play->sceneId == SCENE_KAJIYA) && (gSaveContext.save.weekEventReg[33] & 0x80))) {
|
||||
Actor_MarkForDeath(thisx);
|
||||
return;
|
||||
}
|
||||
@ -205,7 +205,7 @@ void func_80931A38(ObjIcePoly* this, PlayState* play) {
|
||||
this->actionFunc = func_80931E58;
|
||||
this->actor.focus.rot.y = this->actor.yawTowardsPlayer;
|
||||
|
||||
if (play->sceneNum == SCENE_00KEIKOKU) {
|
||||
if (play->sceneId == SCENE_00KEIKOKU) {
|
||||
Actor* actor = NULL;
|
||||
|
||||
do {
|
||||
|
@ -36,11 +36,10 @@ void ObjJgGakki_Init(Actor* thisx, PlayState* play2) {
|
||||
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 24.0f);
|
||||
SkelAnime_Init(play, &this->skelAnime, &gGoronElderDrumSkel, NULL, NULL, NULL, 0);
|
||||
|
||||
if (((play->sceneNum == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 7)) &&
|
||||
(play->csCtx.currentCsIndex == 0)) {
|
||||
if (((play->sceneId == SCENE_SPOT00) && (gSaveContext.sceneSetupIndex == 7)) && (play->csCtx.currentCsIndex == 0)) {
|
||||
Animation_Change(&this->skelAnime, &gGoronElderDrumTakeOutAnim, 1.0f, frameCount, frameCount, ANIMMODE_ONCE,
|
||||
0.0f);
|
||||
} else if ((play->sceneNum == SCENE_17SETUGEN) || (play->sceneNum == SCENE_10YUKIYAMANOMURA)) {
|
||||
} else if ((play->sceneId == SCENE_17SETUGEN) || (play->sceneId == SCENE_10YUKIYAMANOMURA)) {
|
||||
Animation_Change(&this->skelAnime, &gGoronElderDrumTakeOutAnim, 1.0f, 0.0f, frameCount, ANIMMODE_ONCE, 0.0f);
|
||||
} else {
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
|
@ -71,7 +71,7 @@ void ObjNozoki_Init(Actor* thisx, PlayState* play) {
|
||||
this->dyna.actor.shape.rot.z = 0;
|
||||
this->unk_15F = this->dyna.actor.cutscene;
|
||||
|
||||
if (play->sceneNum == SCENE_AYASHIISHOP) {
|
||||
if (play->sceneId == SCENE_AYASHIISHOP) {
|
||||
this->unk_15C = 4;
|
||||
ObjNozoki_SetupAction(this, func_80BA3230);
|
||||
this->dyna.actor.colChkInfo.cylRadius = -40;
|
||||
|
@ -348,7 +348,7 @@ void ObjSwitch_Init(Actor* thisx, PlayState* play) {
|
||||
DynaPolyActor_LoadMesh(play, &this->dyna, &gFloorSwitchCol);
|
||||
}
|
||||
if (type == OBJSWITCH_TYPE_FLOOR) {
|
||||
if (play->sceneNum == SCENE_SECOM) {
|
||||
if (play->sceneId == SCENE_SECOM) {
|
||||
this->floorSwitchUpScale = 33.0f / 200.0f / 3.0f;
|
||||
this->floorSwitchDownScale = 33.0f / 2000.0f / 3.0f;
|
||||
} else {
|
||||
@ -357,7 +357,7 @@ void ObjSwitch_Init(Actor* thisx, PlayState* play) {
|
||||
}
|
||||
}
|
||||
if (type == OBJSWITCH_TYPE_FLOOR || type == OBJSWITCH_TYPE_FLOOR_LARGE) {
|
||||
if (play->sceneNum == SCENE_SECOM) {
|
||||
if (play->sceneId == SCENE_SECOM) {
|
||||
Color_RGB8* color = &sSakonHideoutColor[OBJ_SWITCH_GET_COLOR_ID(&this->dyna.actor)];
|
||||
|
||||
this->color.r = color->r;
|
||||
@ -584,7 +584,7 @@ void ObjSwitch_FloorSwitchDown(ObjSwitch* this, PlayState* play) {
|
||||
case OBJSWITCH_SUBTYPE_ONCE:
|
||||
case OBJSWITCH_SUBTYPE_SYNC:
|
||||
if (!Flags_GetSwitch(play, OBJ_SWITCH_GET_SWITCH_FLAG(&this->dyna.actor))) {
|
||||
if (play->sceneNum == SCENE_SECOM && DynaPolyActor_IsInSwitchPressedState(&this->dyna)) {
|
||||
if ((play->sceneId == SCENE_SECOM) && DynaPolyActor_IsInSwitchPressedState(&this->dyna)) {
|
||||
ObjSwitch_SetSwitchFlagState(this, play, true);
|
||||
} else {
|
||||
ObjSwitch_FloorSwitchRiseUpInit(this);
|
||||
@ -595,7 +595,7 @@ void ObjSwitch_FloorSwitchDown(ObjSwitch* this, PlayState* play) {
|
||||
case OBJSWITCH_SUBTYPE_RESET:
|
||||
case OBJSWITCH_SUBTYPE_RESET_INVERTED:
|
||||
if (!DynaPolyActor_IsInSwitchPressedState(&this->dyna) &&
|
||||
(!Player_InCsMode(play) || play->sceneNum == SCENE_SECOM)) {
|
||||
(!Player_InCsMode(play) || (play->sceneId == SCENE_SECOM))) {
|
||||
if (this->floorSwitchReleaseTimer <= 0) {
|
||||
if (subType == OBJSWITCH_SUBTYPE_RESET) {
|
||||
ObjSwitch_SetSwitchFlagState(this, play, false);
|
||||
@ -607,7 +607,7 @@ void ObjSwitch_FloorSwitchDown(ObjSwitch* this, PlayState* play) {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (play->sceneNum == SCENE_SECOM) {
|
||||
if (play->sceneId == SCENE_SECOM) {
|
||||
this->floorSwitchReleaseTimer = 2;
|
||||
} else {
|
||||
this->floorSwitchReleaseTimer = 6;
|
||||
|
@ -193,7 +193,7 @@ void ObjTokeiStep_Init(Actor* thisx, PlayState* play) {
|
||||
|
||||
Actor_ProcessInitChain(&this->dyna.actor, sInitChain);
|
||||
DynaPolyActor_Init(&this->dyna, 0);
|
||||
if ((play->sceneNum == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
if ((play->sceneId == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0)) {
|
||||
DynaPolyActor_LoadMesh(play, &this->dyna, &gClocktowerPanelCol);
|
||||
ObjTokeiStep_InitSteps(this);
|
||||
|
@ -121,9 +121,9 @@ void ObjTokeidai_ExteriorGear_Init(ObjTokeidai* this, PlayState* play) {
|
||||
this->opaDList = gClockTowerExteriorGearDL;
|
||||
ObjTokeidai_SetupClockOrExteriorGear(this);
|
||||
|
||||
if (((play->sceneNum == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
if (((play->sceneId == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0)) ||
|
||||
((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0))) {
|
||||
ObjTokeidai_SetupTowerOpening(this);
|
||||
} else if ((CURRENT_DAY == 3 && gSaveContext.save.time < CLOCK_TIME(6, 0)) || CURRENT_DAY >= 4) {
|
||||
@ -140,9 +140,9 @@ void ObjTokeidai_TowerClock_Init(ObjTokeidai* this, PlayState* play) {
|
||||
this->actor.draw = ObjTokeidai_Clock_Draw;
|
||||
ObjTokeidai_Clock_Init(this);
|
||||
|
||||
if (((play->sceneNum == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
if (((play->sceneId == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0)) ||
|
||||
((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0))) {
|
||||
ObjTokeidai_SetupTowerOpening(this);
|
||||
} else if ((CURRENT_DAY == 3 && gSaveContext.save.time < CLOCK_TIME(6, 0)) || CURRENT_DAY >= 4) {
|
||||
@ -175,9 +175,9 @@ void ObjTokeidai_Counterweight_Init(ObjTokeidai* this, PlayState* play) {
|
||||
this->spotlightIntensity = 0;
|
||||
}
|
||||
|
||||
if (((play->sceneNum == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
if (((play->sceneId == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0)) ||
|
||||
((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0))) {
|
||||
this->spotlightIntensity = 0;
|
||||
ObjTokeidai_SetupTowerOpening(this);
|
||||
@ -448,9 +448,9 @@ void ObjTokeidai_TowerOpening_EndCutscene(ObjTokeidai* this, PlayState* play) {
|
||||
if (Cutscene_CheckActorAction(play, 132) != 0 &&
|
||||
play->csCtx.actorActions[Cutscene_GetActorActionIndex(play, 132)]->action == 5) {
|
||||
gSaveContext.save.weekEventReg[8] |= 0x40;
|
||||
if (((play->sceneNum == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
if (((play->sceneId == SCENE_CLOCKTOWER) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0)) ||
|
||||
((play->sceneNum == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
((play->sceneId == SCENE_00KEIKOKU) && (gSaveContext.sceneSetupIndex == 2) &&
|
||||
(play->csCtx.currentCsIndex == 0))) {
|
||||
Audio_SetCutsceneFlag(false);
|
||||
gSaveContext.save.cutscene = 0;
|
||||
|
@ -162,7 +162,7 @@ void func_80927818(ObjTsubo* this, PlayState* play, s32 arg2) {
|
||||
}
|
||||
|
||||
s32 ObjTsubo_IsSceneNotGohtOrTwinmold(ObjTsubo* this, PlayState* play) {
|
||||
return (play->sceneNum != SCENE_HAKUGIN_BS) && (play->sceneNum != SCENE_INISIE_BS);
|
||||
return (play->sceneId != SCENE_HAKUGIN_BS) && (play->sceneId != SCENE_INISIE_BS);
|
||||
}
|
||||
|
||||
void func_8092788C(ObjTsubo* this, PlayState* play) {
|
||||
|
@ -42,8 +42,8 @@ void func_808A7968(ObjWturn* this, PlayState* play) {
|
||||
if (play->msgCtx.ocarinaMode >= 28 && play->msgCtx.ocarinaMode < 39) {
|
||||
Flags_UnsetSwitch(play, this->actor.params);
|
||||
Actor_MarkForDeath(&this->actor);
|
||||
} else if ((Flags_GetSwitch(play, this->actor.params) && (play->sceneNum == SCENE_F40)) ||
|
||||
(!Flags_GetSwitch(play, this->actor.params) && (play->sceneNum == SCENE_F41))) {
|
||||
} else if ((Flags_GetSwitch(play, this->actor.params) && (play->sceneId == SCENE_F40)) ||
|
||||
(!Flags_GetSwitch(play, this->actor.params) && (play->sceneId == SCENE_F41))) {
|
||||
func_808A7A24(this);
|
||||
}
|
||||
}
|
||||
@ -112,7 +112,7 @@ void func_808A7C78(ObjWturn* this, PlayState* play) {
|
||||
play->transitionType = TRANS_TYPE_64;
|
||||
gSaveContext.nextTransitionType = TRANS_TYPE_03;
|
||||
gSaveContext.nextCutsceneIndex = 0;
|
||||
if (play->sceneNum == SCENE_F40) {
|
||||
if (play->sceneId == SCENE_F40) {
|
||||
play->nextEntrance = ENTRANCE(STONE_TOWER_INVERTED, 0);
|
||||
} else {
|
||||
play->nextEntrance = ENTRANCE(STONE_TOWER, 1);
|
||||
|
@ -588,7 +588,7 @@ void func_808DD970(Actor* thisx, PlayState* play2) {
|
||||
ObjectKankyo* this = THIS;
|
||||
f32 tempA;
|
||||
|
||||
if (play->sceneNum == SCENE_KYOJINNOMA) {
|
||||
if (play->sceneId == SCENE_KYOJINNOMA) {
|
||||
phi_f26 = 1.0f;
|
||||
} else {
|
||||
tempA = Camera_GetWaterYPos(GET_ACTIVE_CAM(play));
|
||||
|
@ -2495,8 +2495,8 @@
|
||||
0x80131F90:("Scene_DrawConfigMatAnimManualStep",),
|
||||
0x80131FC0:("Scene_DrawConfigGreatBayTemple",),
|
||||
0x801322C0:("Entrance_GetTableEntry",),
|
||||
0x8013230C:("Entrance_GetSceneNum",),
|
||||
0x80132338:("Entrance_GetSceneNumAbsolute",),
|
||||
0x8013230C:("Entrance_GetSceneId",),
|
||||
0x80132338:("Entrance_GetSceneIdAbsolute",),
|
||||
0x80132374:("Entrance_GetSpawnNum",),
|
||||
0x801323A0:("Entrance_GetTransitionFlags",),
|
||||
0x801323D0:("Schedule_CheckFlagS",),
|
||||
@ -3024,7 +3024,7 @@
|
||||
0x80169BF8:("func_80169BF8",),
|
||||
0x80169C64:("Play_GetActorCsCamSetting",),
|
||||
0x80169C84:("Play_GetActorCsCamFuncData",),
|
||||
0x80169CBC:("Play_GetOriginalSceneNumber",),
|
||||
0x80169CBC:("Play_GetOriginalSceneId",),
|
||||
0x80169D40:("Play_SaveCycleSceneFlags",),
|
||||
0x80169DCC:("Play_SetRespawnData",),
|
||||
0x80169E6C:("Play_SetupRespawnPoint",),
|
||||
|
@ -1342,8 +1342,8 @@
|
||||
0x801C1E6C:("gItemIcons","UNK_PTR","[131]",0x20C),
|
||||
0x801C2078:("gItemSlots","u8","[80]",0x50),
|
||||
0x801C20C8:("gItemPrices","UNK_TYPE1","",0x1),
|
||||
0x801C212C:("gScenesPerRegion","SceneIdList","[]",0x252),
|
||||
0x801C2380:("sScenesPerTingleMap","u16","[]",0x90),
|
||||
0x801C212C:("gSceneIdsPerRegion","SceneIdList","[]",0x252),
|
||||
0x801C2380:("sSceneIdsPerTingleMap","u16","[]",0x90),
|
||||
0x801C2410:("D_801C2410","UNK_TYPE1","",0x1),
|
||||
0x801C2650:("tatlMessageFiles","RomFile","[2]",0x10),
|
||||
0x801C2660:("sceneTextureFiles","RomFile","[9]",0x48),
|
||||
|
@ -729,6 +729,7 @@ wordReplace = {
|
||||
"play->actorCtx.unk3": "play->actorCtx.lensActive",
|
||||
"play->actorCtx.unk4": "play->actorCtx.lensMaskSize",
|
||||
"play->nextEntranceIndex": "play->nextEntrance",
|
||||
"play->sceneNum": "play->sceneId",
|
||||
|
||||
"gSaveContext.unk_3DC8": "gSaveContext.timerOsTime",
|
||||
"gSaveContext.unk_3DD0": "gSaveContext.timerStates",
|
||||
|
@ -2009,8 +2009,8 @@ asm/non_matchings/code/z_scene_proc/Scene_DrawConfig5.s,Scene_DrawConfig5,0x8013
|
||||
asm/non_matchings/code/z_scene_proc/Scene_DrawConfigMatAnimManualStep.s,Scene_DrawConfigMatAnimManualStep,0x80131F90,0xC
|
||||
asm/non_matchings/code/z_scene_proc/Scene_DrawConfigGreatBayTemple.s,Scene_DrawConfigGreatBayTemple,0x80131FC0,0xC0
|
||||
asm/non_matchings/code/z_scene_table/Entrance_GetTableEntry.s,Entrance_GetTableEntry,0x801322C0,0x13
|
||||
asm/non_matchings/code/z_scene_table/Entrance_GetSceneNum.s,Entrance_GetSceneNum,0x8013230C,0xB
|
||||
asm/non_matchings/code/z_scene_table/Entrance_GetSceneNumAbsolute.s,Entrance_GetSceneNumAbsolute,0x80132338,0xF
|
||||
asm/non_matchings/code/z_scene_table/Entrance_GetSceneId.s,Entrance_GetSceneId,0x8013230C,0xB
|
||||
asm/non_matchings/code/z_scene_table/Entrance_GetSceneIdAbsolute.s,Entrance_GetSceneIdAbsolute,0x80132338,0xF
|
||||
asm/non_matchings/code/z_scene_table/Entrance_GetSpawnNum.s,Entrance_GetSpawnNum,0x80132374,0xB
|
||||
asm/non_matchings/code/z_scene_table/Entrance_GetTransitionFlags.s,Entrance_GetTransitionFlags,0x801323A0,0xC
|
||||
asm/non_matchings/code/code_801323D0/func_801323D0.s,func_801323D0,0x801323D0,0x16
|
||||
@ -2538,7 +2538,7 @@ asm/non_matchings/code/z_play/Play_GetCameraUID.s,Play_GetCameraUID,0x80169BC4,0
|
||||
asm/non_matchings/code/z_play/func_80169BF8.s,func_80169BF8,0x80169BF8,0x1B
|
||||
asm/non_matchings/code/z_play/Play_GetActorCsCamSetting.s,Play_GetActorCsCamSetting,0x80169C64,0x8
|
||||
asm/non_matchings/code/z_play/Play_GetActorCsCamFuncData.s,Play_GetActorCsCamFuncData,0x80169C84,0xE
|
||||
asm/non_matchings/code/z_play/Play_GetOriginalSceneNumber.s,Play_GetOriginalSceneNumber,0x80169CBC,0x21
|
||||
asm/non_matchings/code/z_play/Play_GetOriginalSceneId.s,Play_GetOriginalSceneId,0x80169CBC,0x21
|
||||
asm/non_matchings/code/z_play/Play_SaveCycleSceneFlags.s,Play_SaveCycleSceneFlags,0x80169D40,0x23
|
||||
asm/non_matchings/code/z_play/Play_SetRespawnData.s,Play_SetRespawnData,0x80169DCC,0x28
|
||||
asm/non_matchings/code/z_play/Play_SetupRespawnPoint.s,Play_SetupRespawnPoint,0x80169E6C,0x18
|
||||
|
|
Loading…
Reference in New Issue
Block a user