From ce30cedf4a769a4747432f40b5ae5a730d99b539 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Wed, 25 Feb 2026 14:00:54 -0800 Subject: [PATCH] Deposit all items to bank on right-click when bank is open All right-clicked inventory items now deposit to bank regardless of whether they are equippable, usable, or materials. --- src/ui/inventory_screen.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/ui/inventory_screen.cpp b/src/ui/inventory_screen.cpp index 0b4704b9..757df530 100644 --- a/src/ui/inventory_screen.cpp +++ b/src/ui/inventory_screen.cpp @@ -1428,12 +1428,9 @@ void InventoryScreen::renderItemSlot(game::Inventory& inventory, const game::Ite " bagIndex=", bagIndex, " bagSlotIndex=", bagSlotIndex, " vendorMode=", vendorMode_, " bankOpen=", gameHandler_->isBankOpen()); - // 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) { + if (gameHandler_->isBankOpen() && kind == SlotKind::BACKPACK && backpackIndex >= 0) { gameHandler_->depositItem(0xFF, static_cast(23 + backpackIndex)); - } else if (bankDeposit && kind == SlotKind::BACKPACK && isBagSlot) { + } else if (gameHandler_->isBankOpen() && kind == SlotKind::BACKPACK && isBagSlot) { gameHandler_->depositItem(static_cast(19 + bagIndex), static_cast(bagSlotIndex)); } else if (vendorMode_ && kind == SlotKind::BACKPACK && backpackIndex >= 0) { gameHandler_->sellItemBySlot(backpackIndex);