diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-31 21:27:52 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-31 21:27:52 +0300 |
commit | 35481061f62111f916a39ce3cac6a314579418f9 (patch) | |
tree | ecf73b207a78f9e35bb47f8ed1067931733090b7 /src/resources/beinginfo.h | |
parent | aea9e7f8c26644ba38db5eb9dbf412195f9851b2 (diff) | |
download | plus-35481061f62111f916a39ce3cac6a314579418f9.tar.gz plus-35481061f62111f916a39ce3cac6a314579418f9.tar.bz2 plus-35481061f62111f916a39ce3cac6a314579418f9.tar.xz plus-35481061f62111f916a39ce3cac6a314579418f9.zip |
Load currency names for each npc from npcs.xml.
Diffstat (limited to 'src/resources/beinginfo.h')
-rw-r--r-- | src/resources/beinginfo.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/beinginfo.h b/src/resources/beinginfo.h index 2e7bc1743..a68e7ca7b 100644 --- a/src/resources/beinginfo.h +++ b/src/resources/beinginfo.h @@ -339,6 +339,12 @@ class BeingInfo final std::string getString(const int idx) const A_WARN_UNUSED; + std::string getCurrency() const A_WARN_UNUSED + { return mCurrency; } + + void setCurrency(const std::string &name) + { mCurrency = name; } + static void init(); static void clear(); @@ -352,6 +358,7 @@ class BeingInfo final Attacks mAttacks; std::vector<BeingMenuItem> mMenu; std::map<int, std::string> mStrings; + std::string mCurrency; unsigned char mBlockWalkMask; BlockTypeT mBlockType; const std::map <ItemColor, ColorDB::ItemColorData> *mColors; |