mirror of
https://github.com/HarbourMasters/Shipwright
synced 2026-07-09 14:56:12 -04:00
CrowdControl random buttons fix (#4679)
* CC random buttons fix * Archez's fix
This commit is contained in:
@@ -217,7 +217,7 @@ namespace GameInteractionEffect {
|
||||
void _Apply() override;
|
||||
};
|
||||
|
||||
class PressRandomButton: public GameInteractionEffectBase, public ParameterizedGameInteractionEffect {
|
||||
class PressRandomButton: public RemovableGameInteractionEffect, public ParameterizedGameInteractionEffect {
|
||||
GameInteractionEffectQueryResult CanBeApplied() override;
|
||||
void _Apply() override;
|
||||
};
|
||||
|
||||
@@ -54,7 +54,8 @@ void ObjTsubo_RandomizerSpawnCollectible(ObjTsubo* potActor, PlayState* play) {
|
||||
void ObjTsubo_RandomizerInit(void* actorRef) {
|
||||
Actor* actor = static_cast<Actor*>(actorRef);
|
||||
|
||||
if (actor->id != ACTOR_OBJ_TSUBO) return;
|
||||
// Check for Lake Hylia specifically because the game spawns 2 pots out of bounds there for some reason.
|
||||
if (actor->id != ACTOR_OBJ_TSUBO || gPlayState->sceneNum == SCENE_LAKE_HYLIA) return;
|
||||
|
||||
ObjTsubo* potActor = static_cast<ObjTsubo*>(actorRef);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user