Browse Source

junk from inventory

lakebane-new
FatBoy-DOTC 5 months ago
parent
commit
9a34b13c2e
  1. 7
      src/engine/net/client/ClientMessagePump.java

7
src/engine/net/client/ClientMessagePump.java

@ -562,6 +562,13 @@ public class ClientMessagePump implements NetMsgHandler { @@ -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);
}

Loading…
Cancel
Save