From 35481061f62111f916a39ce3cac6a314579418f9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 31 Jan 2017 21:27:52 +0300 Subject: Load currency names for each npc from npcs.xml. --- src/resources/beinginfo.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/resources/beinginfo.h') 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 mMenu; std::map mStrings; + std::string mCurrency; unsigned char mBlockWalkMask; BlockTypeT mBlockType; const std::map *mColors; -- cgit v1.2.3-60-g2f50