forked from MagicBane/Server
stat runes junk for 500k each
This commit is contained in:
@@ -562,7 +562,10 @@ public class ClientMessagePump implements NetMsgHandler {
|
|||||||
|
|
||||||
if (i.isCanDestroy()) {
|
if (i.isCanDestroy()) {
|
||||||
if (itemManager.delete(i) == true) {
|
if (itemManager.delete(i) == true) {
|
||||||
sourcePlayer.getCharItemManager().addGoldToInventory(i.getItemBase().getBaseValue(),false);
|
int value = i.getItemBase().getBaseValue();
|
||||||
|
if(i.getItemBase().isStatRune())
|
||||||
|
value = 500000;
|
||||||
|
sourcePlayer.getCharItemManager().addGoldToInventory(value,false);
|
||||||
sourcePlayer.getCharItemManager().updateInventory();
|
sourcePlayer.getCharItemManager().updateInventory();
|
||||||
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
|
Dispatch dispatch = Dispatch.borrow(sourcePlayer, msg);
|
||||||
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
|
||||||
|
|||||||
Reference in New Issue
Block a user