mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-06-24 01:51:25 -04:00
Christmas Ornament Hunt first pass
This commit is contained in:
@@ -2585,14 +2585,6 @@ u16 Randomizer_Item_Give(PlayState* play, GetItemEntry giEntry) {
|
||||
gSaveContext.triforcePiecesCollected++;
|
||||
GameInteractor_SetTriforceHuntPieceGiven(true);
|
||||
|
||||
// Teleport to credits when goal is reached.
|
||||
if (gSaveContext.triforcePiecesCollected == Randomizer_GetSettingValue(RSK_TRIFORCE_HUNT_PIECES_REQUIRED)) {
|
||||
gSaveContext.sohStats.itemTimestamp[TIMESTAMP_TRIFORCE_COMPLETED] = GAMEPLAYSTAT_TOTAL_TIME;
|
||||
gSaveContext.sohStats.gameComplete = 1;
|
||||
Play_PerformSave(play);
|
||||
GameInteractor_SetTriforceHuntCreditsWarpActive(true);
|
||||
}
|
||||
|
||||
return Return_Item_Entry(giEntry, RG_NONE);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@ u64 D_801614D0[0xA00];
|
||||
PlayState* gPlayState;
|
||||
|
||||
s16 gEnPartnerId;
|
||||
s16 gEnChristmasTreeId;
|
||||
|
||||
void OTRPlay_SpawnScene(PlayState* play, s32 sceneNum, s32 spawn);
|
||||
|
||||
@@ -759,6 +760,10 @@ void Play_Init(GameState* thisx) {
|
||||
GET_PLAYER(play)->actor.world.pos.y + Player_GetHeight(GET_PLAYER(play)) + 5.0f,
|
||||
GET_PLAYER(play)->actor.world.pos.z, 0, 0, 0, 1, true);
|
||||
}
|
||||
|
||||
if (play->sceneNum == SCENE_KAKARIKO_VILLAGE && Randomizer_GetSettingValue(RSK_TRIFORCE_HUNT)) {
|
||||
Actor_Spawn(&play->actorCtx, play, gEnChristmasTreeId, -734, 0, 420, 0, 0, 0, 1, true);
|
||||
}
|
||||
}
|
||||
|
||||
void Play_Update(PlayState* play) {
|
||||
|
||||
Reference in New Issue
Block a user