More integration work
This commit is contained in:
@@ -1341,28 +1341,28 @@ public class CharacterItemManager {
|
||||
/*
|
||||
* Delegates
|
||||
*/
|
||||
public synchronized boolean bankContains(Item i) {
|
||||
if (i.template.item_type.equals(ItemType.GOLD))
|
||||
return (this.getGoldBank() != null && this.goldBank.getObjectUUID() == i.getObjectUUID());
|
||||
return bank.contains(i);
|
||||
public synchronized boolean bankContains(Item item) {
|
||||
if (item.template.item_type.equals(ItemType.GOLD))
|
||||
return (this.getGoldBank() != null && this.goldBank.getObjectUUID() == item.getObjectUUID());
|
||||
return bank.contains(item);
|
||||
}
|
||||
|
||||
public synchronized boolean inventoryContains(Item i) {
|
||||
if (i.template.item_type.equals(ItemType.GOLD))
|
||||
return (this.getGoldInventory() != null && this.goldInventory.getObjectUUID() == i.getObjectUUID());
|
||||
return inventory.contains(i);
|
||||
public synchronized boolean inventoryContains(Item item) {
|
||||
if (item.template.item_type.equals(ItemType.GOLD))
|
||||
return (this.getGoldInventory() != null && this.goldInventory.getObjectUUID() == item.getObjectUUID());
|
||||
return inventory.contains(item);
|
||||
}
|
||||
|
||||
public synchronized boolean forgeContains(Item i, NPC vendor) {
|
||||
if (i.template.item_type.equals(ItemType.GOLD))
|
||||
return (this.getGoldInventory() != null && this.goldInventory.getObjectUUID() == i.getObjectUUID());
|
||||
return vendor.getRolling().contains(i);
|
||||
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 i) {
|
||||
if (i.template.item_type.equals(ItemType.GOLD))
|
||||
return (this.getGoldVault() != null && this.goldVault.getObjectUUID() == i.getObjectUUID());
|
||||
return this.account.getVault().contains(i);
|
||||
public synchronized boolean vaultContains(Item item) {
|
||||
if (item.template.item_type.equals(ItemType.GOLD))
|
||||
return (this.getGoldVault() != null && this.goldVault.getObjectUUID() == item.getObjectUUID());
|
||||
return this.account.getVault().contains(item);
|
||||
}
|
||||
|
||||
public synchronized boolean equippedContains(Item i) {
|
||||
|
||||
Reference in New Issue
Block a user