mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-22 16:18:50 -05:00
Stop the dropped item despawn timer on demand (#382)
* Stop the despawn timer on demand * But do make them disappear once they're collected!
This commit is contained in:
parent
e39961dc4b
commit
257cc41d2b
@ -1053,6 +1053,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");
|
||||||
EnhancementCheckbox("Fireproof Deku Shield", "gFireproofDekuShield");
|
EnhancementCheckbox("Fireproof Deku Shield", "gFireproofDekuShield");
|
||||||
Tooltip("Prevents the Deku Shield from burning on contact with fire");
|
Tooltip("Prevents the Deku Shield from burning on contact with fire");
|
||||||
|
|
||||||
|
@ -896,6 +896,9 @@ void EnItem00_Update(Actor* thisx, GlobalContext* globalCtx) {
|
|||||||
|
|
||||||
if (this->unk_15A > 0) {
|
if (this->unk_15A > 0) {
|
||||||
this->unk_15A--;
|
this->unk_15A--;
|
||||||
|
if (CVar_GetS32("gDropsDontDie", 0) && (this->unk_154 <= 0)) {
|
||||||
|
this->unk_15A++;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((this->unk_15A > 0) && (this->unk_15A < 41) && (this->unk_154 <= 0)) {
|
if ((this->unk_15A > 0) && (this->unk_15A < 41) && (this->unk_154 <= 0)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user