Skip to content

Commit

Permalink
Merge pull request HarbourMasters#183 from briaguya-ai/remove-fire-te…
Browse files Browse the repository at this point in the history
…mple-lock

unlock fire temple lobby door behind hammer blocks
  • Loading branch information
briaguya-ai authored Jun 24, 2022
2 parents 9ff445f + f3bfa1d commit 4499d6c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions soh/src/overlays/actors/ovl_En_Door/z_en_door.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,13 @@ void EnDoor_SetupType(EnDoor* this, GlobalContext* globalCtx) {
}
this->actor.world.rot.y = 0x0000;
if (doorType == DOOR_LOCKED) {
// unlock the door behind the hammer blocks
// in the fire temple entryway when rando'd
if (gSaveContext.n64ddFlag && globalCtx->sceneNum == 4) {
// RANDOTODO don't do this when keysanity is enabled
Flags_SetSwitch(globalCtx, 0x17);
}

if (!Flags_GetSwitch(globalCtx, this->actor.params & 0x3F)) {
this->lockTimer = 10;
}
Expand Down

0 comments on commit 4499d6c

Please sign in to comment.