Mask Sale Fix (#2900)

This commit is contained in:
Malkierian 2023-05-20 09:05:47 -07:00 committed by GitHub
parent 4d02d89e03
commit 0b47a19c2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1707,6 +1707,11 @@ u8 Return_Item_Entry(GetItemEntry itemEntry, ItemID returnItem ) {
// Processes Item_Give returns // Processes Item_Give returns
u8 Return_Item(u8 itemID, ModIndex modId, ItemID returnItem) { u8 Return_Item(u8 itemID, ModIndex modId, ItemID returnItem) {
// ITEM_SOLD_OUT doesn't have an ItemTable entry, so pass custom entry instead
if (itemID == ITEM_SOLD_OUT) {
GetItemEntry gie = { ITEM_SOLD_OUT, 0, 0, 0, 0, 0, 0, 0, false, ITEM_FROM_NPC, ITEM_CATEGORY_LESSER, NULL };
return Return_Item_Entry(gie, returnItem);
}
int32_t get = GetGIID(itemID); int32_t get = GetGIID(itemID);
if (get == -1) { if (get == -1) {
modId = MOD_RANDOMIZER; modId = MOD_RANDOMIZER;