mirror of
https://github.com/HarbourMasters/Shipwright.git
synced 2024-11-29 12:52:18 -05:00
Mask Sale Fix (#2900)
This commit is contained in:
parent
4d02d89e03
commit
0b47a19c2c
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user