Skip to content

Commit

Permalink
add the ability to pull graves during the day (#637)
Browse files Browse the repository at this point in the history
  • Loading branch information
louist103 authored Jul 11, 2022
1 parent 4ccc2bb commit a7c94bb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libultraship/libultraship/ImGuiImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,8 @@ namespace SohImGui {
EnhancementCheckbox("Enable passage of time on file select", "gTimeFlowFileSelect");
EnhancementCheckbox("Allow the cursor to be on any slot", "gPauseAnyCursor");
Tooltip("Allows the cursor on the pause menu to be over any slot\nSimilar to Rando and Spaceworld 97");
EnhancementCheckbox("Pull grave during the day", "gDayGravePull");
Tooltip("Allows graves to be pulled when child during the day");
ImGui::EndMenu();
}

Expand Down
2 changes: 1 addition & 1 deletion soh/src/overlays/actors/ovl_Bg_Haka/z_bg_haka.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void func_8087B7E8(BgHaka* this, GlobalContext* globalCtx) {
Player* player = GET_PLAYER(globalCtx);

if (this->dyna.unk_150 != 0.0f) {
if (globalCtx->sceneNum == SCENE_SPOT02 && !LINK_IS_ADULT && IS_DAY) {
if ((globalCtx->sceneNum == SCENE_SPOT02 && !LINK_IS_ADULT && IS_DAY) && !CVar_GetS32("gDayGravePull", 0)) {
this->dyna.unk_150 = 0.0f;
player->stateFlags2 &= ~0x10;
if (!Gameplay_InCsMode(globalCtx)) {
Expand Down

0 comments on commit a7c94bb

Please sign in to comment.