mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2025-08-22 14:23:44 -07:00
Stop the despawn timer on demand
This commit is contained in:
parent
076887e71f
commit
09ee2f87ea
2 changed files with 3 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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--;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue