| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1005,9 +1005,8 @@ public class CharacterItemManager { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                    this.absCharacter.cancelOnUnEquip(); | 
					 | 
					 | 
					 | 
					                    this.absCharacter.cancelOnUnEquip(); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            } | 
					 | 
					 | 
					 | 
					            } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // Clear equipment of item.
 | 
					 | 
					 | 
					 | 
					            // remove it from other lists:
 | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					            this.remItemFromLists(item); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            this.absCharacter.charItemManager.equipped.remove(item.equipSlot); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // check to see what type of AbstractCharacter subclass we have stored
 | 
					 | 
					 | 
					 | 
					            // check to see what type of AbstractCharacter subclass we have stored
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					 | 
					@ -1017,9 +1016,6 @@ public class CharacterItemManager { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            } else if (!item.moveItemToInventory((NPC) this.absCharacter)) | 
					 | 
					 | 
					 | 
					            } else if (!item.moveItemToInventory((NPC) this.absCharacter)) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					                return false; | 
					 | 
					 | 
					 | 
					                return false; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // remove it from other lists:
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            this.remItemFromLists(item); | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            // add to Inventory
 | 
					 | 
					 | 
					 | 
					            // add to Inventory
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            this.inventory.add(item); | 
					 | 
					 | 
					 | 
					            this.inventory.add(item); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					            item.addToCache(); | 
					 | 
					 | 
					 | 
					            item.addToCache(); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -1695,10 +1691,11 @@ public class CharacterItemManager { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        return lootItem; | 
					 | 
					 | 
					 | 
					        return lootItem; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    private synchronized void remItemFromLists(Item i) { | 
					 | 
					 | 
					 | 
					    private synchronized void remItemFromLists(Item item) { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        this.vault.remove(i); | 
					 | 
					 | 
					 | 
					        this.equipped.remove(item.equipSlot); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        this.bank.remove(i); | 
					 | 
					 | 
					 | 
					        this.vault.remove(item); | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        this.inventory.remove(i); | 
					 | 
					 | 
					 | 
					        this.bank.remove(item); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        this.inventory.remove(item); | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    } | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    /* | 
					 | 
					 | 
					 | 
					    /* | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |