From 40a60a7bb7fd3291fde0a2a689f674a8169c7b64 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 21 Oct 2014 12:30:17 +0300 Subject: Add to item field damaged. --- src/item.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/item.h') 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. */ -- cgit v1.2.3-70-g09d2