summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 01:13:46 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 01:13:46 +0300
commit76e55447563fae6f8d17f2fd90231c81e0b3f927 (patch)
treefa0b2b5daaa50149329f12b7f47b28901d95cc79 /src/item.cpp
parent8d12abe6ff4114a04b8fc9549e8f44683fed9e3d (diff)
downloadmanaverse-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.gz
manaverse-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.bz2
manaverse-76e55447563fae6f8d17f2fd90231c81e0b3f927.tar.xz
manaverse-76e55447563fae6f8d17f2fd90231c81e0b3f927.zip
Add to item field identified.
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/item.cpp b/src/item.cpp
index 8b9253822..da4483874 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -37,8 +37,12 @@
DragDrop dragDrop(nullptr, DRAGDROP_SOURCE_EMPTY);
-Item::Item(const int id, const int quantity, const uint8_t refine,
- const unsigned char color, const bool equipment,
+Item::Item(const int id,
+ const int quantity,
+ const uint8_t refine,
+ const unsigned char color,
+ const bool identified,
+ const bool equipment,
const bool equipped) :
mId(0),
mColor(0),
@@ -50,7 +54,10 @@ Item::Item(const int id, const int quantity, const uint8_t refine,
mInvIndex(0),
mEquipment(equipment),
mEquipped(equipped),
- mInEquipment(false)
+ mInEquipment(false),
+ mIdentified(identified),
+ mDamaged(false),
+ mFavorite(false)
{
setId(id, color);
}