summaryrefslogtreecommitdiff
path: root/src/resources/iteminfo.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-03 18:00:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-03 18:00:02 +0300
commit87dc57caff1b01f4abe2cc14bfc56f5bc130fbb6 (patch)
tree926e4cf6c72f2b9f7ada2a715ca79adc88a53157 /src/resources/iteminfo.h
parent3a9f3469e65e1c45a8cdf9c6ae21e73c90b87d22 (diff)
downloadManaVerse-87dc57caff1b01f4abe2cc14bfc56f5bc130fbb6.tar.gz
ManaVerse-87dc57caff1b01f4abe2cc14bfc56f5bc130fbb6.tar.bz2
ManaVerse-87dc57caff1b01f4abe2cc14bfc56f5bc130fbb6.tar.xz
ManaVerse-87dc57caff1b01f4abe2cc14bfc56f5bc130fbb6.zip
Add item attribute useButton2 and use it in inventory.
Diffstat (limited to 'src/resources/iteminfo.h')
-rw-r--r--src/resources/iteminfo.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/iteminfo.h b/src/resources/iteminfo.h
index 4c8ece517..dca71128e 100644
--- a/src/resources/iteminfo.h
+++ b/src/resources/iteminfo.h
@@ -102,6 +102,12 @@ class ItemInfo final
const std::string &getUseButton() const A_WARN_UNUSED
{ return mUseButton; }
+ void setUseButton2(const std::string &str)
+ { mUseButton2 = str; }
+
+ const std::string &getUseButton2() const A_WARN_UNUSED
+ { return mUseButton2; }
+
ItemType::Type getType() const A_WARN_UNUSED
{ return mType; }
@@ -274,6 +280,7 @@ class ItemInfo final
std::string mDescription; /**< Short description. */
std::string mEffect; /**< Description of effects. */
std::string mUseButton;
+ std::string mUseButton2;
ItemType::Type mType; /**< Item type. */
int mWeight; /**< Weight in grams. */
int mView; /**< Item ID of how this item looks. */