summaryrefslogtreecommitdiff
path: root/src/shopitem.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/shopitem.h')
-rw-r--r--src/shopitem.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shopitem.h b/src/shopitem.h
index a1c3d5649..bfe7fe39a 100644
--- a/src/shopitem.h
+++ b/src/shopitem.h
@@ -143,6 +143,11 @@ class ShopItem final : public Item
bool isVisible() const
{ return mVisible; }
+ void increaseUsedQuantity(const int amount);
+
+ int getUsedQuantity() const A_WARN_UNUSED
+ { return mUsedQuantity; }
+
protected:
void updateDisplayName(const int quantity);
@@ -158,6 +163,7 @@ class ShopItem final : public Item
} DuplicateItem;
std::stack<DuplicateItem*> mDuplicates; /** <-- Stores duplicates */
int mPrice;
+ int mUsedQuantity;
bool mShowQuantity;
bool mVisible;
};