|
|
@ -99,37 +99,6 @@ public class Item extends AbstractWorldObject { |
|
|
|
bakeInStats(); |
|
|
|
bakeInStats(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public Item(ItemBase itemBase, int ownerID, |
|
|
|
|
|
|
|
OwnerType ownerType, byte chargesMax, byte chargesRemaining, |
|
|
|
|
|
|
|
short durabilityCurrent, short durabilityMax, boolean canDestroy, |
|
|
|
|
|
|
|
boolean rentable, boolean inBank, boolean inVault, |
|
|
|
|
|
|
|
boolean inInventory, boolean isEquipped, boolean isForge, byte equipSlot, |
|
|
|
|
|
|
|
ArrayList<EnchantmentBase> enchants) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
super(); |
|
|
|
|
|
|
|
this.itemBaseID = itemBase.getUUID(); |
|
|
|
|
|
|
|
this.ownerID = ownerID; |
|
|
|
|
|
|
|
this.ownerType = ownerType; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.chargesMax = (byte) itemBase.getNumCharges(); |
|
|
|
|
|
|
|
this.chargesRemaining = (byte) itemBase.getNumCharges(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.durabilityMax = (short) itemBase.getDurability(); |
|
|
|
|
|
|
|
this.durabilityCurrent = (short) itemBase.getDurability(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.canDestroy = canDestroy; |
|
|
|
|
|
|
|
this.rentable = rentable; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.equipSlot = equipSlot; |
|
|
|
|
|
|
|
this.enchants = enchants; |
|
|
|
|
|
|
|
this.flags = 1; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.value = this.magicValue; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
loadEnchantments(); |
|
|
|
|
|
|
|
bakeInStats(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Normal Constructor |
|
|
|
* Normal Constructor |
|
|
|
*/ |
|
|
|
*/ |
|
|
|