From 66aeeb8857695b9a6bab8fce0bf4925fb43a03fd Mon Sep 17 00:00:00 2001 From: gymnast86 Date: Tue, 14 Apr 2026 17:34:07 -0700 Subject: [PATCH] Patch execItemGet and patch CoO fairy to give item no matter what --- src/d/actor/d_a_npc_fairy.cpp | 4 ++++ src/d/d_item.cpp | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/src/d/actor/d_a_npc_fairy.cpp b/src/d/actor/d_a_npc_fairy.cpp index c228d969d5..77f9f99e24 100644 --- a/src/d/actor/d_a_npc_fairy.cpp +++ b/src/d/actor/d_a_npc_fairy.cpp @@ -1269,7 +1269,11 @@ void daNpc_Fairy_c::AppearDemoCall() { } else { mEvtNo = EVT_APPEAR_50F_02; } +#if TARGET_PC + } else if (dComIfGs_checkEmptyBottle() || dComIfG_isRandomizer()) { +#else } else if (dComIfGs_checkEmptyBottle()) { +#endif mEvtNo = EVT_APPEAR_50F_01; } else { mEvtNo = EVT_APPEAR_50F_04; diff --git a/src/d/d_item.cpp b/src/d/d_item.cpp index 3f5a0e1a1e..777686f649 100644 --- a/src/d/d_item.cpp +++ b/src/d/d_item.cpp @@ -8,6 +8,9 @@ #include "d/d_item.h" #include "d/d_com_inf_game.h" #include "d/d_meter2_info.h" +#if TARGET_PC +#include "dusk/randomizer/game/verify_item_functions.h" +#endif #include static void (*item_func_ptr[256])() = { @@ -541,6 +544,10 @@ inline void getItemFunc(u8 i_itemNo) { } void execItemGet(u8 i_itemNo) { +#if TARGET_PC + if (dComIfG_isRandomizer()) + i_itemNo = verifyProgressiveItem(i_itemNo); +#endif getItemFunc(i_itemNo); }