From 9a34b13c2ed47475dc6d04aa82f53e08e2c17128 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 11 Jun 2024 21:10:54 -0500 Subject: [PATCH] junk from inventory --- src/engine/net/client/ClientMessagePump.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/engine/net/client/ClientMessagePump.java b/src/engine/net/client/ClientMessagePump.java index d31a63c3..36b250d6 100644 --- a/src/engine/net/client/ClientMessagePump.java +++ b/src/engine/net/client/ClientMessagePump.java @@ -562,6 +562,13 @@ public class ClientMessagePump implements NetMsgHandler { if (i.isCanDestroy()) if (itemManager.delete(i) == true) { + int goldValue = i.getItemBase().getBaseValue(); + if(i.getItemBase().isRune()) + goldValue = 500000; + + if(goldValue > 0) + itemManager.addGoldToInventory(goldValue,false); + Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); }