Stop the despawn timer on demand

This commit is contained in:
Josh Bodner 2022-05-18 22:32:21 -07:00
commit 09ee2f87ea
2 changed files with 3 additions and 1 deletions

View file

@ -768,6 +768,8 @@ namespace SohImGui {
Tooltip("Allows you to use any item at any location"); Tooltip("Allows you to use any item at any location");
EnhancementCheckbox("Freeze Time", "gFreezeTime"); EnhancementCheckbox("Freeze Time", "gFreezeTime");
Tooltip("Freezes the time of day"); 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(); ImGui::EndMenu();
} }

View file

@ -894,7 +894,7 @@ void EnItem00_Update(Actor* thisx, GlobalContext* globalCtx) {
DroppedItemRot += 100; DroppedItemRot += 100;
} }
if (this->unk_15A > 0) { if ((this->unk_15A > 0) && !CVar_GetS32("gDropsDontDie", 0)) {
this->unk_15A--; this->unk_15A--;
} }