diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-03-08 06:06:50 +0200 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-03-08 06:06:50 +0200 |
commit | 07c9e6360ac16c96b8624a4b0bf4557ae295699d (patch) | |
tree | 718cbc1e2cd21b13239d7bca4be9a04d811e4c48 /src/item.h | |
parent | c17acf93cb4ebe698b0af8a38a1fd6d49a6be3cc (diff) | |
download | ManaVerse-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.h | 4 |
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; }; |