Skip to content

Commit

Permalink
Merge pull request HarbourMasters#116 from MelonSpeedruns/testing-out…
Browse files Browse the repository at this point in the history
…-item-replacement

forest temple skips
  • Loading branch information
briaguya-ai authored Jun 12, 2022
2 parents c4e34cf + 16d3429 commit 51ccfee
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions soh/src/overlays/actors/ovl_En_Po_Sisters/z_en_po_sisters.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,12 @@ void EnPoSisters_Init(Actor* thisx, GlobalContext* globalCtx) {
EnPoSisters* this = (EnPoSisters*)thisx;
s32 pad;

// Skip Poe Intro Cutscene
if (gSaveContext.n64ddFlag && thisx->params == 4124) {
Flags_SetSwitch(globalCtx, 0x1B);
Actor_Kill(thisx);
}

Actor_ProcessInitChain(&this->actor, sInitChain);
ActorShape_Init(&this->actor.shape, 0.0f, ActorShadow_DrawCircle, 50.0f);
SkelAnime_Init(globalCtx, &this->skelAnime, &gPoeSistersSkel, &gPoeSistersSwayAnim, this->jointTable,
Expand Down Expand Up @@ -851,6 +857,11 @@ void func_80ADB338(EnPoSisters* this, GlobalContext* globalCtx) {
if (Actor_WorldDistXZToPoint(&player->actor, &this->actor.home.pos) < 600.0f) {
if (this->unk_19C != 0) {
this->unk_19C--;

// Force Meg to respawn instantly after getting hit
if (gSaveContext.n64ddFlag) {
this->unk_19C = 0;
}
}
} else {
this->unk_19C = 100;
Expand Down

0 comments on commit 51ccfee

Please sign in to comment.