mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-26 03:12:18 -05:00
add the ability to pull graves during the day (#637)
This commit is contained in:
parent
4ccc2bb12f
commit
a7c94bba8c
@ -1033,6 +1033,8 @@ namespace SohImGui {
|
|||||||
EnhancementCheckbox("Enable passage of time on file select", "gTimeFlowFileSelect");
|
EnhancementCheckbox("Enable passage of time on file select", "gTimeFlowFileSelect");
|
||||||
EnhancementCheckbox("Allow the cursor to be on any slot", "gPauseAnyCursor");
|
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");
|
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();
|
ImGui::EndMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -69,7 +69,7 @@ void func_8087B7E8(BgHaka* this, GlobalContext* globalCtx) {
|
|||||||
Player* player = GET_PLAYER(globalCtx);
|
Player* player = GET_PLAYER(globalCtx);
|
||||||
|
|
||||||
if (this->dyna.unk_150 != 0.0f) {
|
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;
|
this->dyna.unk_150 = 0.0f;
|
||||||
player->stateFlags2 &= ~0x10;
|
player->stateFlags2 &= ~0x10;
|
||||||
if (!Gameplay_InCsMode(globalCtx)) {
|
if (!Gameplay_InCsMode(globalCtx)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user