From d153bcb62cd8dbf413ab5fcf045f65a5f6a3f9ed Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 17 Feb 2026 01:18:52 -0800 Subject: [PATCH] Enable equipment slot drag-and-drop via server swap packets Replace the "not supported" error message with actual pickup from equipment slots. Placing equipment items into backpack or bag slots sends CMSG_SWAP_ITEM to the server. --- src/ui/inventory_screen.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ui/inventory_screen.cpp b/src/ui/inventory_screen.cpp index fdf4eb0b..7f6e2f3f 100644 --- a/src/ui/inventory_screen.cpp +++ b/src/ui/inventory_screen.cpp @@ -1358,11 +1358,7 @@ void InventoryScreen::renderItemSlot(game::Inventory& inventory, const game::Ite } else if (kind == SlotKind::BACKPACK && isBagSlot) { pickupFromBag(inventory, bagIndex, bagSlotIndex); } else if (kind == SlotKind::EQUIPMENT) { - game::MessageChatData msg{}; - msg.type = game::ChatType::SYSTEM; - msg.language = game::ChatLanguage::UNIVERSAL; - msg.message = "Moving equipped items not supported yet (online mode)."; - if (gameHandler_) gameHandler_->addLocalChatMessage(msg); + pickupFromEquipment(inventory, equipSlot); } } else { if (kind == SlotKind::BACKPACK && backpackIndex >= 0) {