From 79e803232438d41cce80467a97e9efde8e6c0c70 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Sun, 15 Feb 2009 11:29:40 +0000 Subject: Add configurable units system --- src/shopitem.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/shopitem.cpp') 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() + ")"; } -- cgit v1.2.3-70-g09d2