diff options
| author | Philip Dubé <159546+serprex@users.noreply.github.com> | 2026-04-17 03:50:17 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-04-17 03:50:17 +0000 |
| commit | aedae12e6324285608d6fc3bc4c23896156d1ff2 (patch) | |
| tree | 57ddb6cacd896dbca8602b3197e91399331965dd /soh/src | |
| parent | 27d35e5a9228e09aa8ac045c081bb85f9b8fe9e4 (diff) | |
Hookify DropsDontDie, NoFishDespawn, NoBugsDespawn (#6513)
Diffstat (limited to 'soh/src')
| -rw-r--r-- | soh/src/code/z_en_item00.c | 6 | ||||
| -rw-r--r-- | soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c | 3 | ||||
| -rw-r--r-- | soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c | 7 |
3 files changed, 3 insertions, 13 deletions
diff --git a/soh/src/code/z_en_item00.c b/soh/src/code/z_en_item00.c index e8e29a19d..b2da1c40d 100644 --- a/soh/src/code/z_en_item00.c +++ b/soh/src/code/z_en_item00.c @@ -3,7 +3,6 @@ #include "objects/gameplay_keep/gameplay_keep.h" #include "overlays/effects/ovl_Effect_Ss_Dead_Sound/z_eff_ss_dead_sound.h" #include "textures/icon_item_static/icon_item_static.h" -#include "soh/Enhancements/game-interactor/GameInteractor.h" #include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h" #include "soh/OTRGlobals.h" @@ -781,11 +780,8 @@ void EnItem00_Update(Actor* thisx, PlayState* play) { } } - if (this->unk_15A > 0) { + if (GameInteractor_Should(VB_ITEM00_TIMER_TICK, this->unk_15A > 0, this)) { this->unk_15A--; - if (CVarGetInteger(CVAR_CHEAT("DropsDontDie"), 0) && (this->unk_154 <= 0)) { - this->unk_15A++; - } } if ((this->unk_15A > 0) && (this->unk_15A < 41) && (this->unk_154 <= 0)) { diff --git a/soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c b/soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c index c8509aa51..7ee6432b2 100644 --- a/soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c +++ b/soh/src/overlays/actors/ovl_En_Fish/z_en_fish.c @@ -8,6 +8,7 @@ #include "objects/gameplay_keep/gameplay_keep.h" #include "vt.h" #include "soh/ResourceManagerHelpers.h" +#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h" #define FLAGS 0 @@ -679,7 +680,7 @@ void EnFish_UpdateCutscene(EnFish* this, PlayState* play) { // Update functions and Draw void EnFish_OrdinaryUpdate(EnFish* this, PlayState* play) { - if (this->timer > 0 && CVarGetInteger(CVAR_CHEAT("NoFishDespawn"), 0) == 0) { + if (GameInteractor_Should(VB_FISH_TIMER_TICK, this->timer > 0)) { this->timer--; } diff --git a/soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c b/soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c index 46199e841..87706b088 100644 --- a/soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c +++ b/soh/src/overlays/actors/ovl_En_Insect/z_en_insect.c @@ -212,13 +212,6 @@ void EnInsect_Init(Actor* thisx, PlayState* play2) { func_80A7D39C(this); - // For bugs that aren't linked to a soil patch, we remove the "short lived" flag to prevent them from despawning - // And exit early to not increment the "bugs dropped count" - if (CVarGetInteger(CVAR_CHEAT("NoBugsDespawn"), 0) && this->soilActor == NULL) { - this->insectFlags &= ~4; - return; - } - D_80A7DEB8++; } else { rand = Rand_ZeroOne(); |
