Core/Players: explicitely disable using the reagent bag slot

This commit is contained in:
Ovahlord
2023-11-17 12:00:25 +01:00
parent 7131bb4ad1
commit 76b538fa59

View File

@@ -9730,6 +9730,10 @@ InventoryResult Player::CanStoreItem_InSpecificSlot(uint8 bag, uint8 slot, ItemP
// empty specific slot - check item fit to slot
if (!pItem2 || swap)
{
// Reagent bags are not supported in Classic
if (slot == REAGENT_BAG_SLOT_START)
return EQUIP_ERR_WRONG_BAG_TYPE;
if (bag == INVENTORY_SLOT_BAG_0)
{
// keyring case
@@ -9871,6 +9875,10 @@ InventoryResult Player::CanStoreItem_InInventorySlots(uint8 slot_begin, uint8 sl
if (INVENTORY_SLOT_BAG_0 == skip_bag && j == skip_slot)
continue;
// Reagent bags are not supported in Classic
if (j == REAGENT_BAG_SLOT_START)
continue;
Item* pItem2 = GetItemByPos(INVENTORY_SLOT_BAG_0, j);
// ignore move item (this slot will be empty at move)