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 b7ef7534b..842e0d79b 100644
--- a/src/item.h
+++ b/src/item.h
@@ -46,6 +46,7 @@ class Item notfinal
const uint8_t color,
const bool identified,
const bool damaged,
+ const bool favorite,
const bool equipment,
const bool equipped);
@@ -182,6 +183,12 @@ class Item notfinal
bool getDamaged() const A_WARN_UNUSED
{ return mDamaged; }
+ void setFavorite(const bool b)
+ { mFavorite = b; }
+
+ bool getFavorite() const A_WARN_UNUSED
+ { return mFavorite; }
+
int mId; /**< Item type id. */
unsigned char mColor;
int mQuantity; /**< Number of items. */