summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 12:30:17 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 12:30:17 +0300
commit40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (patch)
tree9410a23feea6c6248612afdc8968a1c04306e5b0 /src/item.h
parent76e55447563fae6f8d17f2fd90231c81e0b3f927 (diff)
downloadplus-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.gz
plus-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.bz2
plus-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.tar.xz
plus-40a60a7bb7fd3291fde0a2a689f674a8169c7b64.zip
Add to item field damaged.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h
index fbc6abac6..b7ef7534b 100644
--- a/src/item.h
+++ b/src/item.h
@@ -45,6 +45,7 @@ class Item notfinal
const uint8_t refine,
const uint8_t color,
const bool identified,
+ const bool damaged,
const bool equipment,
const bool equipped);
@@ -175,6 +176,12 @@ class Item notfinal
bool getIdentified() const A_WARN_UNUSED
{ return mIdentified; }
+ void setDamaged(const bool b)
+ { mDamaged = b; }
+
+ bool getDamaged() const A_WARN_UNUSED
+ { return mDamaged; }
+
int mId; /**< Item type id. */
unsigned char mColor;
int mQuantity; /**< Number of items. */