Browse Source

noob island gear

lakebane-new
FatBoy-DOTC 6 months ago
parent
commit
39305d63c7
  1. 23
      src/engine/net/client/ClientMessagePump.java

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

@ -564,23 +564,26 @@ public class ClientMessagePump implements NetMsgHandler {
if(i.getItemBaseID() == 7) if(i.getItemBaseID() == 7)
return; return;
if (i.isCanDestroy()) if (i.isCanDestroy()) {
if (itemManager.delete(i)) { int goldValue = i.getBaseValue();
int goldValue = i.getBaseValue(); if (i.getItemBase().isRune())
if(i.getItemBase().isRune()) goldValue = 500000;
goldValue = 500000;
if (i.getItemBaseID() == 980066)
goldValue = 0;
if(i.getItemBaseID() == 980066) if(itemManager.getGoldInventory().getNumOfItems() + goldValue > 10000000)
goldValue = 0; return;
if(goldValue > 0) if (itemManager.delete(i)) {
itemManager.addGoldToInventory(goldValue,false); if (goldValue > 0)
itemManager.addGoldToInventory(goldValue, false);
itemManager.updateInventory(); itemManager.updateInventory();
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg); Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
} }
}
} }
private static void ackBankWindowOpened(AckBankWindowOpenedMsg msg, ClientConnection origin) { private static void ackBankWindowOpened(AckBankWindowOpenedMsg msg, ClientConnection origin) {

Loading…
Cancel
Save