diff --git a/libultraship/libultraship/SohImGuiImpl.cpp b/libultraship/libultraship/SohImGuiImpl.cpp index d17d6ccee..35bd6f012 100644 --- a/libultraship/libultraship/SohImGuiImpl.cpp +++ b/libultraship/libultraship/SohImGuiImpl.cpp @@ -768,6 +768,8 @@ namespace SohImGui { Tooltip("Allows you to use any item at any location"); EnhancementCheckbox("Freeze Time", "gFreezeTime"); Tooltip("Freezes the time of day"); + EnhancementCheckbox("Drops Don't Despawn", "gDropsDontDie"); + Tooltip("Drops from enemies, grass, etc. don't disappear after a set amount of time"); ImGui::EndMenu(); } diff --git a/soh/src/code/z_en_item00.c b/soh/src/code/z_en_item00.c index d0179a5e1..5a25c45a8 100644 --- a/soh/src/code/z_en_item00.c +++ b/soh/src/code/z_en_item00.c @@ -894,7 +894,7 @@ void EnItem00_Update(Actor* thisx, GlobalContext* globalCtx) { DroppedItemRot += 100; } - if (this->unk_15A > 0) { + if ((this->unk_15A > 0) && !CVar_GetS32("gDropsDontDie", 0)) { this->unk_15A--; }