Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
4a47f88
Add Shuffle Roll (V1)
TheLynk Nov 12, 2025
782ca3e
Clang Format
TheLynk Nov 12, 2025
aedcc53
New Model For Roll
TheLynk Nov 12, 2025
4ec4308
Rename Custom Model in Code
TheLynk Nov 12, 2025
4c3b5a7
Add more translation
TheLynk Nov 12, 2025
c78f3e2
Tweak Translation
TheLynk Nov 12, 2025
b61e3bf
Update soh/soh/Enhancements/game-interactor/vanilla-behavior/GIVanill…
TheLynk Nov 12, 2025
3d9c729
Tweak code | Thx @serprex
TheLynk Nov 12, 2025
b2b6e3b
Update soh/soh/Enhancements/randomizer/logic.cpp
TheLynk Nov 12, 2025
e1d4cf0
Fix translation
TheLynk Nov 13, 2025
82b00c2
Re Add All the branch (but no Shuffle Silver Rupee) | V1.0
TheLynk Nov 17, 2025
272f223
Add Branch "Shuffle Roll" | Version : 2.0
TheLynk Nov 18, 2025
7cb8893
Fix Text in Item tracker and Logic for ZR | V:2.1
TheLynk Nov 19, 2025
1cdff1e
Fix Logic in KF
TheLynk Nov 22, 2025
b5eb52e
Fix Logic in KF | 2.2
TheLynk Nov 22, 2025
9b52cba
Add Branch add the ability to Randomize Music (Seeded) | V:3.0
TheLynk Nov 24, 2025
bd31a0e
Add branch "Invisible Navi option" | V:4.0
TheLynk Nov 25, 2025
8259c4d
Add branch "Rando: Add Triforce Hunt GBK setting" | V:5.0
TheLynk Nov 30, 2025
15b75a7
Add branch "Add Edit buttons for custom presets" | V6.0
TheLynk Dec 1, 2025
b97a2fb
Add branch "Check tracker improvements" | V:7.0
TheLynk Dec 1, 2025
b397099
Add branch "Improvements to Custom Kaleido Menu" | V:8.0
TheLynk Dec 1, 2025
2a5371f
Fix Logic
TheLynk Dec 2, 2025
042b163
Fix Logic | V:8.1
TheLynk Dec 2, 2025
19d7c41
Fix Logic Shuffle Bean Souls | V:8.2
TheLynk Dec 4, 2025
7a89164
Merge branch 'develop' into Shuffle-Roll
TheLynk Dec 5, 2025
1752085
Update model for Shuffle Roll | V:8.3
TheLynk Dec 7, 2025
d95815d
Fix Merge And New Model for Roll
TheLynk Dec 7, 2025
6f2fb97
Merge branch 'develop' into V3-Anchor-Fusion-All-New-Option
TheLynk Dec 8, 2025
cc4695f
Fix Update Auto Merge | V:9.0
TheLynk Dec 8, 2025
a64c1c7
Fix crash Logic | V:9.1
TheLynk Dec 8, 2025
6940160
Add branch "rocksanity" | V:10.0
TheLynk Dec 8, 2025
c142b67
clang-format
TheLynk Dec 8, 2025
cd7d871
Fix Logic | V:10.1
TheLynk Dec 12, 2025
a9af840
Merge branch 'develop' into V3-Anchor-Fusion-All-New-Option
PABessero Jan 4, 2026
94f560e
Major Update | V:11
TheLynk Jan 14, 2026
31e719f
Merge branch 'develop' into V3-Anchor-Fusion-All-New-Option
TheLynk Jan 14, 2026
e0348c0
Good Luck Update | V:12
TheLynk Jan 14, 2026
bab500a
Merge remote-tracking branch 'upstream/develop' into Shuffle-Roll
TheLynk Jan 15, 2026
5d0d387
Merge remote-tracking branch 'upstream/develop' into Shuffle-Roll
TheLynk Jan 15, 2026
30de6d9
Add Animation Capture Tool.cpp & remove useless code in draw.cpp
TheLynk Jan 15, 2026
08fcf08
Update animation_capture_tool.cpp
TheLynk Jan 15, 2026
80f242e
Update soh/soh/Enhancements/randomizer/animation_capture_tool.cpp
TheLynk Jan 17, 2026
0441abd
Merge branch 'develop' into Shuffle-Roll
TheLynk Jan 21, 2026
e60f573
Clang Format
TheLynk Jan 21, 2026
0701923
Fix crash and Add Ice traps Text for Roll
TheLynk Jan 21, 2026
f010acc
Add Roll in Kaleido Tracker
TheLynk Jan 21, 2026
14ec67f
Merge branch 'HarbourMasters:develop' into develop (Manuel)
TheLynk Jan 23, 2026
1f2c383
Add Roll in Item Tracker
TheLynk Jan 23, 2026
ea9d820
To many addition | V:13
TheLynk Jan 23, 2026
d1f5bfc
To many addition | V:13
TheLynk Jan 23, 2026
e4d72b2
Update Logic | V:13.1
TheLynk Jan 23, 2026
a8fee8e
Merge branch 'V3-Anchor-Fusion-All-New-Option' into Shuffle-Roll
TheLynk Jan 23, 2026
d47f5a2
Update Roll | V:13.2
TheLynk Jan 23, 2026
510c427
Update Roll | V:13.2 (Re Send)
TheLynk Jan 24, 2026
61b5143
Fix Crash and add Missing line | V:13.3
TheLynk Jan 27, 2026
9835d66
Update "Drop Throw Only" | V:13.4
TheLynk Feb 1, 2026
12c03d2
Fix Logic in Deku Tree | V:13.5
TheLynk Feb 7, 2026
28725c7
Fix Logic by @Malkierian on PR #6233 | V:13.6
TheLynk Feb 7, 2026
e7d647a
Merge branch 'develop' into V3-Anchor-Fusion-All-New-Option
TheLynk Feb 7, 2026
f23fc28
Add Shuffle Speak | V:14
TheLynk Feb 8, 2026
5506b9e
Fix Crash by @A-Green-Spoon on PR #6242 | V:14.1
TheLynk Feb 8, 2026
11c8f82
Custom bottle contents | V14.2
TheLynk Feb 8, 2026
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
38 changes: 38 additions & 0 deletions soh/assets/objects/object_custom_equip/object_custom_equip.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,44 @@ static const ALIGN_ASSET(2) char gCustomAdultFPSHandDL[] = dgCustomAdultFPSHandD
#define dgCustomChildFPSHandDL "__OTR__objects/object_custom_equip/gCustomChildFPSHandDL"
static const ALIGN_ASSET(2) char gCustomChildFPSHandDL[] = dgCustomChildFPSHandDL;

// Custom Bottle Content Display Lists
#define dgCustomBottleDL "__OTR__objects/object_custom_equip/gCustomBottleDL"
static const ALIGN_ASSET(2) char gCustomBottleDL[] = dgCustomBottleDL;

#define dgCustomBottleRedPotionDL "__OTR__objects/object_custom_equip/gCustomBottleRedPotionDL"
static const ALIGN_ASSET(2) char gCustomBottleRedPotionDL[] = dgCustomBottleRedPotionDL;

#define dgCustomBottleGreenPotionDL "__OTR__objects/object_custom_equip/gCustomBottleGreenPotionDL"
static const ALIGN_ASSET(2) char gCustomBottleGreenPotionDL[] = dgCustomBottleGreenPotionDL;

#define dgCustomBottleBluePotionDL "__OTR__objects/object_custom_equip/gCustomBottleBluePotionDL"
static const ALIGN_ASSET(2) char gCustomBottleBluePotionDL[] = dgCustomBottleBluePotionDL;

#define dgCustomBottleFairyDL "__OTR__objects/object_custom_equip/gCustomBottleFairyDL"
static const ALIGN_ASSET(2) char gCustomBottleFairyDL[] = dgCustomBottleFairyDL;

#define dgCustomBottleFishDL "__OTR__objects/object_custom_equip/gCustomBottleFishDL"
static const ALIGN_ASSET(2) char gCustomBottleFishDL[] = dgCustomBottleFishDL;

#define dgCustomBottleMilkDL "__OTR__objects/object_custom_equip/gCustomBottleMilkDL"
static const ALIGN_ASSET(2) char gCustomBottleMilkDL[] = dgCustomBottleMilkDL;

#define dgCustomBottleMilkHalfDL "__OTR__objects/object_custom_equip/gCustomBottleMilkHalfDL"
static const ALIGN_ASSET(2) char gCustomBottleMilkHalfDL[] = dgCustomBottleMilkHalfDL;

#define dgCustomBottleLetterDL "__OTR__objects/object_custom_equip/gCustomBottleLetterDL"
static const ALIGN_ASSET(2) char gCustomBottleLetterDL[] = dgCustomBottleLetterDL;

#define dgCustomBottleBlueFireDL "__OTR__objects/object_custom_equip/gCustomBottleBlueFireDL"
static const ALIGN_ASSET(2) char gCustomBottleBlueFireDL[] = dgCustomBottleBlueFireDL;

#define dgCustomBottleBugDL "__OTR__objects/object_custom_equip/gCustomBottleBugDL"
static const ALIGN_ASSET(2) char gCustomBottleBugDL[] = dgCustomBottleBugDL;

#define dgCustomBottleBigPoeDL "__OTR__objects/object_custom_equip/gCustomBottleBigPoeDL"
static const ALIGN_ASSET(2) char gCustomBottleBigPoeDL[] = dgCustomBottleBigPoeDL;

#define dgCustomBottlePoeDL "__OTR__objects/object_custom_equip/gCustomBottlePoeDL"
static const ALIGN_ASSET(2) char gCustomBottlePoeDL[] = dgCustomBottlePoeDL;

#endif // OBJECTS_OBJECT_CUSTOM_EQUIP_H
17 changes: 17 additions & 0 deletions soh/soh/Enhancements/Cheats/NoLikeLikeItemSteal.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include <libultraship/bridge.h>
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ShipInit.hpp"

extern "C" {
#include "macros.h"
}

static constexpr int32_t CVAR_NOLIKELIKEITEMSTEAL_DEFAULT = 0;
#define CVAR_NOLIKELIKEITEMSTEAL_NAME CVAR_CHEAT("NoLikeLikeItemSteal")
#define CVAR_NOLIKELIKEITEMSTEAL_VALUE CVarGetInteger(CVAR_NOLIKELIKEITEMSTEAL_NAME, CVAR_NOLIKELIKEITEMSTEAL_DEFAULT)

void RegisterNoLikeLikeItemSteal() {
COND_VB_SHOULD(VB_LIKE_LIKE_STEAL_EQUIPMENT, CVAR_NOLIKELIKEITEMSTEAL_VALUE, { *should = false; });
}

static RegisterShipInitFunc initFunc(RegisterNoLikeLikeItemSteal, { CVAR_NOLIKELIKEITEMSTEAL_NAME });
66 changes: 66 additions & 0 deletions soh/soh/Enhancements/DropThrowOnlyActors.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ShipInit.hpp"

extern "C" {
extern PlayState* gPlayState;
}

static int sDropThrowOnlyLastValue = -1;

static void AllowThrowOnlyDrop(Actor* actor, int cvarValue) {
if (actor == nullptr) {
return;
}

switch (actor->id) {
case ACTOR_EN_ISHI:
case ACTOR_EN_KUSA:
case ACTOR_EN_NIW:
case ACTOR_OBJ_TSUBO:
break;
default:
return;
}

if (cvarValue) {
actor->flags &= ~ACTOR_FLAG_THROW_ONLY;
} else {
actor->flags |= ACTOR_FLAG_THROW_ONLY;
}
}

static void OnThrowOnlyActorInit(void* actorPtr) {
if (gPlayState == nullptr || actorPtr == nullptr) {
return;
}

// Use current cvar state for newly spawned actors too
const int currentValue = CVarGetInteger(CVAR_ENHANCEMENT("DropThrowOnlyObjects"), 0);
AllowThrowOnlyDrop((Actor*)actorPtr, currentValue);
}

static void DropThrowOnlyCVarWatcher() {
if (gPlayState == nullptr) {
return;
}

const int currentValue = CVarGetInteger(CVAR_ENHANCEMENT("DropThrowOnlyObjects"), 0);

sDropThrowOnlyLastValue = currentValue;

for (int category = 0; category < ACTORCAT_MAX; category++) {
for (Actor* actor = gPlayState->actorCtx.actorLists[category].head; actor != nullptr; actor = actor->next) {
AllowThrowOnlyDrop(actor, currentValue);
}
}
}

void RegisterAllowThrowOnlyDrop() {
// Always enabled so newly spawned actors match the current cvar state.
COND_HOOK(OnActorInit, true, OnThrowOnlyActorInit);

COND_HOOK(OnGameFrameUpdate, CVarGetInteger(CVAR_ENHANCEMENT("DropThrowOnlyObjects"), 0) != sDropThrowOnlyLastValue,
DropThrowOnlyCVarWatcher);
}

static RegisterShipInitFunc initFunc(RegisterAllowThrowOnlyDrop, { CVAR_ENHANCEMENT("DropThrowOnlyObjects") });
2 changes: 1 addition & 1 deletion soh/soh/Enhancements/ExtraTraps.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ void RegisterExtraTraps() {
});
}

static RegisterShipInitFunc initFunc(RegisterExtraTraps, { CVAR_EXTRA_TRAPS_NAME });
static RegisterShipInitFunc initFunc(RegisterExtraTraps, { CVAR_EXTRA_TRAPS_NAME });
57 changes: 40 additions & 17 deletions soh/soh/Enhancements/Presets/Presets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,18 +250,25 @@ void SavePreset(std::string& presetName) {
}
presets[presetName].presetValues["presetName"] = presetName;
presets[presetName].presetValues["fileType"] = FILE_TYPE_PRESET;
std::ofstream file(
fmt::format("{}/{}.json", Ship::Context::GetInstance()->LocateFileAcrossAppDirs("presets"), presetName));
std::ofstream file(FormatPresetPath(presetName));
file << presets[presetName].presetValues.dump(4);
file.close();
LoadPresets();
}

static std::string newPresetName;
void DeletePreset(std::string& presetName) {
std::string presetPath = FormatPresetPath(presetName);
if (fs::exists(presetPath)) {
fs::remove(presetPath);
}
presets.erase(presetName);
}

static std::string newPresetName, oldPresetName;
static bool saveSection[PRESET_SECTION_MAX];

void DrawNewPresetPopup() {
bool nameExists = presets.contains(newPresetName);
void DrawEditPresetPopup() {
bool nameExists = presets.contains(newPresetName) && newPresetName != oldPresetName;
UIWidgets::InputString("Preset Name", &newPresetName,
UIWidgets::InputOptions()
.Color(THEME_COLOR)
Expand All @@ -270,7 +277,7 @@ void DrawNewPresetPopup() {
.LabelPosition(UIWidgets::LabelPositions::Near)
.ErrorText("Preset name already exists")
.HasError(nameExists));
nameExists = presets.contains(newPresetName);
nameExists = presets.contains(newPresetName) && newPresetName != oldPresetName;
bool noneSelected = true;
for (int i = PRESET_SECTION_SETTINGS; i < PRESET_SECTION_MAX; i++) {
if (saveSection[i]) {
Expand Down Expand Up @@ -348,10 +355,15 @@ void DrawNewPresetPopup() {
presets[newPresetName].fileName = newPresetName;
std::fill_n(presets[newPresetName].apply, PRESET_SECTION_MAX, true);
SavePreset(newPresetName);
if (newPresetName != oldPresetName) {
DeletePreset(oldPresetName);
}
newPresetName = "";
oldPresetName = "";
ImGui::CloseCurrentPopup();
}
if (UIWidgets::Button("Cancel", UIWidgets::ButtonOptions().Padding({ 6.0f, 6.0f }).Color(THEME_COLOR))) {
oldPresetName = "";
ImGui::CloseCurrentPopup();
}
ImGui::EndPopup();
Expand All @@ -364,25 +376,32 @@ void PresetsCustomWidget(WidgetInfo& info) {
.disabledTooltip = "Disabled because of race lockout" } })
.Size(UIWidgets::Sizes::Inline)
.Color(THEME_COLOR))) {
ImGui::OpenPopup("newPreset");
oldPresetName = "";
newPresetName = "";
std::fill_n(saveSection, PRESET_SECTION_MAX, true);
ImGui::OpenPopup("editPreset");
} else if (oldPresetName != "") {
ImGui::OpenPopup("editPreset");
}
if (ImGui::BeginPopup("newPreset", ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoResize |
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoScrollbar |
ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoTitleBar)) {
DrawNewPresetPopup();
if (ImGui::BeginPopup("editPreset", ImGuiWindowFlags_AlwaysAutoResize | ImGuiWindowFlags_NoResize |
ImGuiWindowFlags_NoMove | ImGuiWindowFlags_NoScrollbar |
ImGuiWindowFlags_NoSavedSettings | ImGuiWindowFlags_NoTitleBar)) {
DrawEditPresetPopup();
}
ImGui::SameLine();
UIWidgets::CVarCheckbox("Hide built-in presets", CVAR_GENERAL("HideBuiltInPresets"),
UIWidgets::CheckboxOptions().Color(THEME_COLOR));
bool hideBuiltIn = CVarGetInteger(CVAR_GENERAL("HideBuiltInPresets"), 0);
UIWidgets::PushStyleTabs(THEME_COLOR);
if (ImGui::BeginTable("PresetWidgetTable", PRESET_SECTION_MAX + 3)) {
if (ImGui::BeginTable("PresetWidgetTable", PRESET_SECTION_MAX + 4)) {
ImGui::TableSetupColumn("Name", ImGuiTableColumnFlags_WidthFixed, 400);
for (int i = PRESET_SECTION_SETTINGS; i < PRESET_SECTION_MAX; i++) {
ImGui::TableSetupColumn(blockInfo[i].names[0].c_str());
}
ImGui::TableSetupColumn("Apply", ImGuiTableColumnFlags_WidthFixed,
ImGui::CalcTextSize("Apply").x + ImGui::GetStyle().FramePadding.x * 2);
ImGui::TableSetupColumn("Edit", ImGuiTableColumnFlags_WidthFixed,
ImGui::CalcTextSize("Edit").x + ImGui::GetStyle().FramePadding.x * 2);
ImGui::TableSetupColumn("Delete", ImGuiTableColumnFlags_WidthFixed,
ImGui::CalcTextSize("Delete").x + ImGui::GetStyle().FramePadding.x * 2);
BlankButton();
Expand Down Expand Up @@ -431,13 +450,17 @@ void PresetsCustomWidget(WidgetInfo& info) {
ImGui::TableNextColumn();
UIWidgets::PushStyleButton(THEME_COLOR);
if (!info.isBuiltIn) {
if (UIWidgets::Button(("Edit##" + name).c_str(), UIWidgets::ButtonOptions().Padding({ 6.0f, 6.0f }))) {
std::copy(info.apply, info.apply + PRESET_SECTION_MAX, saveSection);
newPresetName = name;
oldPresetName = name;
}
UIWidgets::PopStyleButton();
ImGui::TableNextColumn();
UIWidgets::PushStyleButton(THEME_COLOR);
if (UIWidgets::Button(("Delete##" + name).c_str(),
UIWidgets::ButtonOptions().Padding({ 6.0f, 6.0f }))) {
auto path = FormatPresetPath(info.fileName);
if (fs::exists(path)) {
fs::remove(path);
}
presets.erase(name);
DeletePreset(info.fileName);
UIWidgets::PopStyleButton();
break;
}
Expand Down
2 changes: 1 addition & 1 deletion soh/soh/Enhancements/QoL/ResetNaviTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ static void RegisterResetNaviTimer() {
COND_HOOK(OnSceneInit, CVAR_RESET_NAVI_VALUE, [](int32_t) { gSaveContext.naviTimer = 0; });
}

static RegisterShipInitFunc initFunc(RegisterResetNaviTimer, { CVAR_RESET_NAVI_NAME });
static RegisterShipInitFunc initFunc(RegisterResetNaviTimer, { CVAR_RESET_NAVI_NAME });
13 changes: 13 additions & 0 deletions soh/soh/Enhancements/audio/DisableNaviCallAudio.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ShipInit.hpp"

static constexpr int32_t CVAR_DISABLENAVICALLAUDIO_DEFAULT = 0;
#define CVAR_DISABLENAVICALLAUDIO_NAME CVAR_AUDIO("DisableNaviCallAudio")
#define CVAR_DISABLENAVICALLAUDIO_VALUE \
CVarGetInteger(CVAR_DISABLENAVICALLAUDIO_NAME, CVAR_DISABLENAVICALLAUDIO_DEFAULT)

void RegisterDisableNaviCallAudio() {
COND_VB_SHOULD(VB_PLAY_NAVI_CALL_SOUND, CVAR_DISABLENAVICALLAUDIO_VALUE, { *should = false; });
}

static RegisterShipInitFunc initFunc(RegisterDisableNaviCallAudio, { CVAR_DISABLENAVICALLAUDIO_NAME });
4 changes: 4 additions & 0 deletions soh/soh/Enhancements/cosmetics/CosmeticsEditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1889,6 +1889,10 @@ void DrawSillyTab() {

UIWidgets::Separator(true, true, 2.0f, 2.0f);

UIWidgets::CVarCheckbox(
"Invisible Navi", CVAR_COSMETIC("InvisibleNavi"),
UIWidgets::CheckboxOptions().Color(THEME_COLOR).Tooltip("Makes Navi invisible and disables her sounds."));

UIWidgets::CVarCheckbox("Let It Snow", CVAR_GENERAL("LetItSnow"),
UIWidgets::CheckboxOptions()
.Color(THEME_COLOR)
Expand Down
63 changes: 63 additions & 0 deletions soh/soh/Enhancements/cosmetics/InvisibleNavi.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
#include "soh/Enhancements/game-interactor/GameInteractor_Hooks.h"
#include "soh/ShipInit.hpp"

extern "C" {
#include "src/overlays/actors/ovl_En_Elf/z_en_elf.h"
}

static constexpr int32_t CVAR_INVISIBLENAVI_DEFAULT = 0;
#define CVAR_INVISIBLENAVI_NAME CVAR_COSMETIC("InvisibleNavi")
#define CVAR_INVISIBLENAVI_VALUE CVarGetInteger(CVAR_INVISIBLENAVI_NAME, CVAR_INVISIBLENAVI_DEFAULT)

void RegisterInvisibleNavi() {
COND_VB_SHOULD(VB_FAIRY_DRAW, CVAR_INVISIBLENAVI_VALUE, {
EnElf* enElf = va_arg(args, EnElf*);
if (enElf->actor.params == FAIRY_NAVI) {
*should = false;
}
});

COND_VB_SHOULD(VB_FAIRY_SPAWN_SPARKLES, CVAR_INVISIBLENAVI_VALUE, {
EnElf* enElf = va_arg(args, EnElf*);
if (enElf->actor.params == FAIRY_NAVI) {
*should = false;
}
});

COND_VB_SHOULD(VB_FAIRY_PLAY_C_UP_TALK_SOUND, CVAR_INVISIBLENAVI_VALUE, {
EnElf* enElf = va_arg(args, EnElf*);
if (enElf->actor.params == FAIRY_NAVI) {
*should = false;
}
});

COND_VB_SHOULD(VB_FAIRY_PLAY_DASH_SOUND, CVAR_INVISIBLENAVI_VALUE, {
EnElf* enElf = va_arg(args, EnElf*);
if (enElf->actor.params == FAIRY_NAVI) {
*should = false;
}
});

COND_VB_SHOULD(VB_FAIRY_PLAY_VANISH_SOUND, CVAR_INVISIBLENAVI_VALUE, {
EnElf* enElf = va_arg(args, EnElf*);
if (enElf->actor.params == FAIRY_NAVI) {
*should = false;
}
});

COND_VB_SHOULD(VB_FAIRY_UPDATE_LIGHTS, CVAR_INVISIBLENAVI_VALUE, {
EnElf* enElf = va_arg(args, EnElf*);
if (enElf->actor.params == FAIRY_NAVI) {
// Force Navi's light radius to zero.
Lights_PointGlowSetInfo(&enElf->lightInfoGlow, enElf->actor.world.pos.x, enElf->actor.world.pos.y,
enElf->actor.world.pos.z, 255, 255, 255, 0);
*should = false;
}
});

COND_VB_SHOULD(VB_PLAY_NAVI_CALL_SOUND, CVAR_INVISIBLENAVI_VALUE, { *should = false; });

COND_VB_SHOULD(VB_PLAY_INTRO_NAVI_SOUNDS, CVAR_INVISIBLENAVI_VALUE, { *should = false; });
}

static RegisterShipInitFunc initFunc(RegisterInvisibleNavi, { CVAR_INVISIBLENAVI_NAME });
Loading
Loading