root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/Item.java

23262440
54
	private int itemLocation;
54
	private int itemLocation;
55
	
55
	
56
	private int echantLevel;
56
	private int echantLevel;
57
	
58
	private int fusionedItemId;
57
59
58
	/**
60
	/**
59
	 * @param objId
61
	 * @param objId
...
...
86
	 * This constructor should be called only from DAO while loading from DB
88
	 * This constructor should be called only from DAO while loading from DB
87
	 */
89
	 */
88
	public Item(int objId, int itemId, long itemCount, int itemColor, boolean isEquipped, boolean isSoulBound,int equipmentSlot, int itemLocation,
90
	public Item(int objId, int itemId, long itemCount, int itemColor, boolean isEquipped, boolean isSoulBound,int equipmentSlot, int itemLocation,
89
		int enchant, int itemSkin)
91
		int enchant, int itemSkin, int fusionedItem)
90
	{
92
	{
91
		super(objId);
93
		super(objId);
92
94
...
...
98
		this.equipmentSlot = equipmentSlot;
100
		this.equipmentSlot = equipmentSlot;
99
		this.itemLocation = itemLocation;
101
		this.itemLocation = itemLocation;
100
		this.echantLevel = enchant;
102
		this.echantLevel = enchant;
103
		this.fusionedItemId = fusionedItem;
101
		this.itemSkinTemplate = DataManager.ITEM_DATA.getItemTemplate(itemSkin);
104
		this.itemSkinTemplate = DataManager.ITEM_DATA.getItemTemplate(itemSkin);
102
	}
105
	}
103
106
...
...
421
	{
424
	{
422
		return itemTemplate.getNameId();
425
		return itemTemplate.getNameId();
423
	}
426
	}
427
	
428
	public boolean hasFusionedItem()
429
	{
430
		return (fusionedItemId != 0);
431
	}
432
	
433
	public int getFusionedItem()
434
	{
435
		return fusionedItemId;
436
	}
437
	
438
	public void setFusionedItem(int itemTemplateId)
439
	{
440
		fusionedItemId = itemTemplateId;
441
	}
424
442
425
}
443
}