summaryrefslogtreecommitdiff
path: root/src/item.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-03-08 06:06:50 +0200
committerAndrei Karas <akaras@inbox.ru>2011-03-08 06:06:50 +0200
commit07c9e6360ac16c96b8624a4b0bf4557ae295699d (patch)
tree718cbc1e2cd21b13239d7bca4be9a04d811e4c48 /src/item.h
parentc17acf93cb4ebe698b0af8a38a1fd6d49a6be3cc (diff)
downloadManaVerse-07c9e6360ac16c96b8624a4b0bf4557ae295699d.tar.gz
ManaVerse-07c9e6360ac16c96b8624a4b0bf4557ae295699d.tar.bz2
ManaVerse-07c9e6360ac16c96b8624a4b0bf4557ae295699d.tar.xz
ManaVerse-07c9e6360ac16c96b8624a4b0bf4557ae295699d.zip
Replace %color% and %Color% constants in item names/descriptions.
Diffstat (limited to 'src/item.h')
-rw-r--r--src/item.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/item.h b/src/item.h
index a5982c98e..29700f27a 100644
--- a/src/item.h
+++ b/src/item.h
@@ -161,6 +161,9 @@ class Item
unsigned char getColor() const
{ return mColor; }
+ std::string &getDescription()
+ { return mDescription; }
+
protected:
int mId; /**< Item type id. */
Image *mImage; /**< Item image. */
@@ -171,6 +174,7 @@ class Item
bool mInEquipment; /**< Item is in equipment */
int mRefine; /**< Item refine level. */
int mInvIndex; /**< Inventory index. */
+ std::string mDescription;
unsigned char mColor;
std::map <int, int> mTags;
};