Skip to content

Commit

Permalink
Unlock early GBK door
Browse files Browse the repository at this point in the history
  • Loading branch information
aMannus committed Jan 21, 2024
1 parent ed3dddf commit 65011c5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion soh/src/overlays/actors/ovl_Door_Shutter/z_door_shutter.c
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,11 @@ void DoorShutter_Init(Actor* thisx, PlayState* play2) {
DoorShutter_SetupAction(this, DoorShutter_SetupType);
this->unk_16B = phi_a3;
if (this->doorType == SHUTTER_KEY_LOCKED || this->doorType == SHUTTER_BOSS) {
if (!Flags_GetSwitch(play, this->dyna.actor.params & 0x3F)) {
// Unlock early Ganon's Boss Key doors to allow access to the pots there when "Shuffle Pots" is on.
uint8_t unlockForShufflePots = play->sceneNum == SCENE_GANONS_TOWER &&
Randomizer_GetSettingValue(RSK_SHUFFLE_POTS) &&
this->dyna.actor.world.pos.y == 800;
if (!Flags_GetSwitch(play, this->dyna.actor.params & 0x3F) && !unlockForShufflePots) {
this->unk_16E = 10;
}
Actor_SetFocus(&this->dyna.actor, 60.0f);
Expand Down

0 comments on commit 65011c5

Please sign in to comment.