Browse Source

noob island gear

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

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

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

Loading…
Cancel
Save