From d61b7b385dde0a20af6f205a95cd6a3653376ed6 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 25 Feb 2026 13:57:37 -0800 Subject: [PATCH] Only auto-deposit non-equippable items to bank on right-click Right-clicking equippable items (inventoryType > 0) while the bank is open now equips them as normal instead of depositing. Only materials, quest items, and other non-equippable items auto-deposit to bank. --- src/ui/inventory_screen.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/ui/inventory_screen.cpp b/src/ui/inventory_screen.cpp index 8bc1f8d4..0b4704b9 100644 --- a/src/ui/inventory_screen.cpp +++ b/src/ui/inventory_screen.cpp @@ -1428,11 +1428,12 @@ void InventoryScreen::renderItemSlot(game::Inventory& inventory, const game::Ite " bagIndex=", bagIndex, " bagSlotIndex=", bagSlotIndex, " vendorMode=", vendorMode_, " bankOpen=", gameHandler_->isBankOpen()); - if (gameHandler_->isBankOpen() && kind == SlotKind::BACKPACK && backpackIndex >= 0) { - // Deposit backpack item into bank: bag=0xFF, slot=23+index + // Bank deposit: only for non-equippable, non-usable items (materials, etc.) + // Equippable items should equip; usable items should be used. + bool bankDeposit = gameHandler_->isBankOpen() && item.inventoryType == 0; + if (bankDeposit && kind == SlotKind::BACKPACK && backpackIndex >= 0) { gameHandler_->depositItem(0xFF, static_cast(23 + backpackIndex)); - } else if (gameHandler_->isBankOpen() && kind == SlotKind::BACKPACK && isBagSlot) { - // Deposit bag item into bank: bag=19+bagIndex, slot=slotIndex + } else if (bankDeposit && kind == SlotKind::BACKPACK && isBagSlot) { gameHandler_->depositItem(static_cast(19 + bagIndex), static_cast(bagSlotIndex)); } else if (vendorMode_ && kind == SlotKind::BACKPACK && backpackIndex >= 0) { gameHandler_->sellItemBySlot(backpackIndex);