From 87dc57caff1b01f4abe2cc14bfc56f5bc130fbb6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 3 Jul 2014 18:00:02 +0300 Subject: Add item attribute useButton2 and use it in inventory. --- src/resources/iteminfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/iteminfo.h') 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. */ -- cgit v1.2.3-70-g09d2