summaryrefslogtreecommitdiff
path: root/src/gui/shop.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2006-11-23 22:51:42 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2006-11-23 22:51:42 +0000
commiteb6a3dfd09f88414ba1bae9ffe1cf4440db7565d (patch)
tree41015edc17e3c308d04e11c062a31f6bde028ea0 /src/gui/shop.cpp
parent08de4c7bab768be5a583150bfabd5d6d54a29c7a (diff)
downloadmana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.gz
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.bz2
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.tar.xz
mana-eb6a3dfd09f88414ba1bae9ffe1cf4440db7565d.zip
Refectored the Itemmanager class to an ItemDB namespace.
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r--src/gui/shop.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp
index 3f30732a..2d33e8a8 100644
--- a/src/gui/shop.cpp
+++ b/src/gui/shop.cpp
@@ -23,7 +23,7 @@
#include "shop.h"
#include "../utils/tostring.h"
-#include "../resources/itemmanager.h"
+#include "../resources/itemdb.h"
ShopItems::~ShopItems()
{
@@ -44,11 +44,11 @@ void ShopItems::addItem(short id, int price)
{
ITEM_SHOP item_shop;
- item_shop.name = itemDb->getItemInfo(id).getName()
+ item_shop.name = ItemDB::get(id).getName()
+ " " + toString(price) + " GP";
item_shop.price = price;
item_shop.id = id;
- item_shop.image = itemDb->getItemInfo(id).getImage();
+ item_shop.image = ItemDB::get(id).getImage();
mItemsShop.push_back(item_shop);
}