summaryrefslogtreecommitdiff
path: root/src/shopitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-11 21:29:51 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-11 21:30:42 +0300
commitc6997f8ee41d5f85dd8a1269e82982e1ab0b5c74 (patch)
treed34c46ef9d3cf927c6b3a0756cfa6d87283773a8 /src/shopitem.h
parent540ddb5411378d5e60c942cda230ddf186bdfbc6 (diff)
downloadmanaverse-c6997f8ee41d5f85dd8a1269e82982e1ab0b5c74.tar.gz
manaverse-c6997f8ee41d5f85dd8a1269e82982e1ab0b5c74.tar.bz2
manaverse-c6997f8ee41d5f85dd8a1269e82982e1ab0b5c74.tar.xz
manaverse-c6997f8ee41d5f85dd8a1269e82982e1ab0b5c74.zip
In personal shops in sell dialog shop no existing items with amount 0 and disabled.
Only for legacy servers.
Diffstat (limited to 'src/shopitem.h')
-rw-r--r--src/shopitem.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/shopitem.h b/src/shopitem.h
index bfe7fe39a..36ccf3c65 100644
--- a/src/shopitem.h
+++ b/src/shopitem.h
@@ -148,6 +148,12 @@ class ShopItem final : public Item
int getUsedQuantity() const A_WARN_UNUSED
{ return mUsedQuantity; }
+ void setDisabled(const bool b)
+ { mDisabled = b; }
+
+ bool getDisabled() const A_WARN_UNUSED
+ { return mDisabled; }
+
protected:
void updateDisplayName(const int quantity);
@@ -166,6 +172,7 @@ class ShopItem final : public Item
int mUsedQuantity;
bool mShowQuantity;
bool mVisible;
+ bool mDisabled;
};
#endif // SHOPITEM_H