summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
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. */