root/trunk/AE-go_GameServer/src/com/aionemu/gameserver/model/gameobjects/Item.java
| 993 | 999 | ||
|---|---|---|---|
80 | * | 80 | * |
81 | * This constructor should be called only from DAO while loading from DB | 81 | * This constructor should be called only from DAO while loading from DB |
82 | */ | 82 | */ |
83 | public Item(int objId, int itemId, int itemCount, int itemColor, boolean isEquipped, int equipmentSlot) | 83 | public Item(int objId, int itemId, int itemCount, int itemColor, boolean isEquipped, int equipmentSlot, int itemLocation) |
84 | { | 84 | { |
85 | super(objId); | 85 | super(objId); |
86 | 86 | ||
... | ... | ||
89 | this.itemColor = itemColor; | 89 | this.itemColor = itemColor; |
90 | this.isEquipped = isEquipped; | 90 | this.isEquipped = isEquipped; |
91 | this.equipmentSlot = equipmentSlot; | 91 | this.equipmentSlot = equipmentSlot; |
92 | this.itemLocation = itemLocation; | ||
92 | } | 93 | } |
93 | 94 | ||
94 | @Override | 95 | @Override |
... | ... | ||
327 | public void setItemLocation(int storageType) | 328 | public void setItemLocation(int storageType) |
328 | { | 329 | { |
329 | this.itemLocation = storageType; | 330 | this.itemLocation = storageType; |
331 | setPersistentState(PersistentState.UPDATE_REQUIRED); | ||
330 | } | 332 | } |
331 | 333 | ||
332 | public int getItemLocation() | 334 | public int getItemLocation() |
Download diff