|
|
@ -1353,12 +1353,6 @@ public class CharacterItemManager { |
|
|
|
return inventory.contains(item); |
|
|
|
return inventory.contains(item); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public synchronized boolean forgeContains(Item item, NPC vendor) { |
|
|
|
|
|
|
|
if (item.template.item_type.equals(ItemType.GOLD)) |
|
|
|
|
|
|
|
return (this.getGoldInventory() != null && this.goldInventory.getObjectUUID() == item.getObjectUUID()); |
|
|
|
|
|
|
|
return ForgeManager.vendorItemLookup.get(vendor).contains(item); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public synchronized boolean vaultContains(Item item) { |
|
|
|
public synchronized boolean vaultContains(Item item) { |
|
|
|
if (item.template.item_type.equals(ItemType.GOLD)) |
|
|
|
if (item.template.item_type.equals(ItemType.GOLD)) |
|
|
|
return (this.getGoldVault() != null && this.goldVault.getObjectUUID() == item.getObjectUUID()); |
|
|
|
return (this.getGoldVault() != null && this.goldVault.getObjectUUID() == item.getObjectUUID()); |
|
|
|