summaryrefslogtreecommitdiff
path: root/src/resources/item/shopitem.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-06 16:58:18 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-06 16:58:18 +0300
commitd557ce63e240960746e48c678b4a08ba66f7fe40 (patch)
tree8dfa33e155d7ea2145df9056895f0c1293155349 /src/resources/item/shopitem.h
parent8e243bbcdae592e1c003e5d2c37c8f0e8f1304e7 (diff)
downloadmv-d557ce63e240960746e48c678b4a08ba66f7fe40.tar.gz
mv-d557ce63e240960746e48c678b4a08ba66f7fe40.tar.bz2
mv-d557ce63e240960746e48c678b4a08ba66f7fe40.tar.xz
mv-d557ce63e240960746e48c678b4a08ba66f7fe40.zip
Add custom currency also into shop items list.
Diffstat (limited to 'src/resources/item/shopitem.h')
-rw-r--r--src/resources/item/shopitem.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/resources/item/shopitem.h b/src/resources/item/shopitem.h
index 96b8fcbf9..7596d0269 100644
--- a/src/resources/item/shopitem.h
+++ b/src/resources/item/shopitem.h
@@ -49,7 +49,8 @@ class ShopItem final : public Item
const ItemTypeT type,
const ItemColor color,
const int quantity,
- const int price);
+ const int price,
+ const std::string &currency);
/**
* Constructor. Creates a new ShopItem. Inventory index will be set to
@@ -61,7 +62,8 @@ class ShopItem final : public Item
ShopItem(const int id,
const ItemTypeT type,
const ItemColor color,
- const int price);
+ const int price,
+ const std::string &currency);
A_DELETE_COPY(ShopItem)
@@ -158,6 +160,7 @@ class ShopItem final : public Item
void updateDisplayName(const int quantity);
std::string mDisplayName;
+ std::string mCurrency;
/**
* Struct to keep track of duplicates.