mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-12-17 22:02:19 -05:00
CrowdControl random buttons fix (#4679)
* CC random buttons fix * Archez's fix
This commit is contained in:
parent
4b07a6f59a
commit
3a8ba03ce8
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user