@ -574,10 +574,13 @@ public class ClientMessagePump implements NetMsgHandler {
@@ -574,10 +574,13 @@ public class ClientMessagePump implements NetMsgHandler {
return ;
if ( i . canDestroy ) {
int value = i . getItemBase ( ) . value ;
if ( i . getItemBase ( ) . isRune ( ) )
value = 500000 ;
if ( sourcePlayer . getCharItemManager ( ) . getGoldInventory ( ) . getNumOfItems ( ) + value > 10000000 ) {
return ;
}
if ( itemManager . delete ( i ) = = true ) {
int value = i . getItemBase ( ) . value ;
if ( i . getItemBase ( ) . isRune ( ) )
value = 500000 ;
sourcePlayer . getCharItemManager ( ) . addGoldToInventory ( value , false ) ;
sourcePlayer . getCharItemManager ( ) . updateInventory ( ) ;
Dispatch dispatch = Dispatch . borrow ( sourcePlayer , msg ) ;