summaryrefslogtreecommitdiff
path: root/src/shopitem.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-02-15 11:29:40 +0000
committerJared Adams <jaxad0127@gmail.com>2009-02-15 11:29:40 +0000
commit79e803232438d41cce80467a97e9efde8e6c0c70 (patch)
treef8fd399a13913ccbc6942f6385f9852426f9ebf1 /src/shopitem.cpp
parent0a106989bd16c48525f01cb8515809e74f37a8d8 (diff)
downloadmana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.gz
mana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.bz2
mana-79e803232438d41cce80467a97e9efde8e6c0c70.tar.xz
mana-79e803232438d41cce80467a97e9efde8e6c0c70.zip
Add configurable units system
Diffstat (limited to 'src/shopitem.cpp')
-rw-r--r--src/shopitem.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shopitem.cpp b/src/shopitem.cpp
index 3b90dfdd..6547aaf1 100644
--- a/src/shopitem.cpp
+++ b/src/shopitem.cpp
@@ -21,11 +21,12 @@
#include "shopitem.h"
-#include "utils/tostring.h"
+#include "units.h"
ShopItem::ShopItem(int id, int quantity, int price):
Item(id, quantity),
mPrice(price)
{
- mDisplayName = getInfo().getName() + " (" + toString(mPrice) + " GP)";
+ mDisplayName = getInfo().getName() +
+ " (" + Units::formatCurrency(mPrice).c_str() + ")";
}