Skip to content

Commit

Permalink
feat(common): onStageWithStoryBoss
Browse files Browse the repository at this point in the history
  • Loading branch information
Zamiell committed Sep 1, 2023
1 parent f944f59 commit 81e469d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions packages/isaacscript-common/src/functions/stage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,16 @@ export function onStageWithShovelWorking(): boolean {
);
}

/**
* Helper function to check if the current stage is one with a story boss. Specifically, this is
* Depths 2 (Mom), Womb 2 (Mom's Heart / It Lives), Blue Womb (Hush), Sheol (Satan), Cathedral
* (Isaac), Dark Room (Lamb), The Chest (Blue Baby), The Void (Delirium), and Home (Dogma / The
* Beast).
*/
export function onStageWithStoryBoss(): boolean {
return onStage(LevelStage.DEPTHS_2) || onStageOrHigher(LevelStage.WOMB_2);
}

/**
* Helper function to warp to a new stage/level.
*
Expand Down

0 comments on commit 81e469d

Please sign in to comment.