Patch execItemGet and patch CoO fairy to give item no matter what

This commit is contained in:
gymnast86
2026-04-14 17:34:07 -07:00
parent d3a9c52ec5
commit 66aeeb8857
2 changed files with 11 additions and 0 deletions
+4
View File
@@ -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;
+7
View File
@@ -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 <cstring>
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);
}