summaryrefslogtreecommitdiff
path: root/src/net/ea/generalhandler.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <crush@themanaworld.org>2009-04-16 21:15:38 +0200
committerPhilipp Sehmisch <crush@themanaworld.org>2009-04-16 21:15:38 +0200
commit3fb7414240a4dd48e39f840dc766e2bb29fad41d (patch)
treec7bed086d1c8821d843ae0867dd47b71c74447c3 /src/net/ea/generalhandler.cpp
parentdac1c9d9b9558053ab9fc96eac8772604b8eedf2 (diff)
parent19469fdabf9f66348da8e10a7187f634d0c0a7b7 (diff)
downloadmana-client-3fb7414240a4dd48e39f840dc766e2bb29fad41d.tar.gz
mana-client-3fb7414240a4dd48e39f840dc766e2bb29fad41d.tar.bz2
mana-client-3fb7414240a4dd48e39f840dc766e2bb29fad41d.tar.xz
mana-client-3fb7414240a4dd48e39f840dc766e2bb29fad41d.zip
Merge branch 'master' of git@gitorious.org:tmw/mainline
Diffstat (limited to 'src/net/ea/generalhandler.cpp')
-rw-r--r--src/net/ea/generalhandler.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/net/ea/generalhandler.cpp b/src/net/ea/generalhandler.cpp
index 7d5a7d40..25987b8e 100644
--- a/src/net/ea/generalhandler.cpp
+++ b/src/net/ea/generalhandler.cpp
@@ -46,12 +46,16 @@
#include "net/messagein.h"
#include "net/messageout.h"
+#include "resources/itemdb.h"
+
#include "configuration.h"
#include "log.h"
#include "main.h"
#include "utils/gettext.h"
+#include <list>
+
Net::GeneralHandler *generalHandler;
namespace EAthena {
@@ -80,6 +84,23 @@ GeneralHandler::GeneralHandler():
};
handledMessages = _messages;
generalHandler = this;
+
+ std::list<ItemDB::Stat*> stats;
+ ItemDB::Stat stat;
+ stat.tag = "str"; stat.tag = N_("Strength: %d");
+ stats.push_back(&stat);
+ stat.tag = "agi"; stat.tag = N_("Agility: %d");
+ stats.push_back(&stat);
+ stat.tag = "vit"; stat.tag = N_("Vitality: %d");
+ stats.push_back(&stat);
+ stat.tag = "int"; stat.tag = N_("Intelligence: %d");
+ stats.push_back(&stat);
+ stat.tag = "dex"; stat.tag = N_("Dexterity: %d");
+ stats.push_back(&stat);
+ stat.tag = "luck"; stat.tag = N_("Luck: %d");
+ stats.push_back(&stat);
+
+ ItemDB::setStatsList(stats);
}
GeneralHandler::~GeneralHandler()