Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/core2/fx/effect_jiggy_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ void func_80333388(enum jiggy_e jiggy_id) {
void func_803333DC(Struct81s *arg0, Actor *arg1) {
s32 jiggy_id;

if (EventSystem_Should(VB_OVERRIDE_JIGGY_ACTOR_LINK, false, arg0, arg1)) {
return;
}
arg0->marker = arg1->marker;
if (arg0->unk14 != NULL) {
arg0->unk14(arg1, arg0->unk18);
Expand Down
4 changes: 4 additions & 0 deletions src/core2/fx/effect_jiggy_spawn.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
void func_80347B10(Struct81s *arg0){
Actor *actor;
actor = bundle_spawn_f32(BUNDLE_10__JIGGY, arg0->position);
// [port] VB_OVERRIDE_BUNDLE_SPAWN can consume the spawn and yield no actor
if (actor == NULL) {
return;
}
actor->unk54 = 3.0f;
func_803333DC(arg0, actor);
}
Expand Down
1 change: 1 addition & 0 deletions src/port/Enhancements/Events/Hooks/Events.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ typedef enum VBehaviorID {
VB_OVERRIDE_BOTTLES_TEXT_CALLBACK,
VB_OVERRIDE_MOLEHILL_ABILITY,
VB_OVERRIDE_JIGGY_SPAWN,
VB_OVERRIDE_JIGGY_ACTOR_LINK,
VB_OVERRIDE_PROP_SPAWN,
VB_OVERRIDE_BUNDLE_SPAWN,
VB_BUNDLE_SPAWN_SET_ACTOR_DATA,
Expand Down
9 changes: 9 additions & 0 deletions src/port/Rando/ObjectBehavior/Jiggy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ static void MarkWorldStateFromJiggySpawn(RandoCheckId randoCheckId) {
}

void Rando::ObjectBehavior::InitJiggyBehavior() {
COND_VB_SHOULD(VB_OVERRIDE_JIGGY_ACTOR_LINK, EVENT_PRIORITY_NORMAL, true, {
(void)va_arg(args, Struct81s*);
Actor* actor = va_arg(args, Actor*);

if (actor == NULL || actor->marker == NULL || actor->marker->id != MARKER_52_JIGGY) {
*should = true;
}
})

COND_VB_SHOULD(VB_NAPPER_SET_JIGGY_POSITION, EVENT_PRIORITY_NORMAL, true, {
if (!IS_RANDO && !OPTION_ENABLED) {
return;
Expand Down
Loading