mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-08-09 02:15:44 -04:00
Patch execItemGet and patch CoO fairy to give item no matter what
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user