diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-16 12:10:25 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-16 12:13:54 -0600 |
commit | b04dd091b9f9e2ff366fc3a5882289df72e2efd9 (patch) | |
tree | 7033bc4ffc8bbe9f3d0c887198a3c6fe067f1a21 /src/net/tmwserv | |
parent | 255c491375005abb1d2de22fa5aa1a821ac3a4f6 (diff) | |
download | mana-client-b04dd091b9f9e2ff366fc3a5882289df72e2efd9.tar.gz mana-client-b04dd091b9f9e2ff366fc3a5882289df72e2efd9.tar.bz2 mana-client-b04dd091b9f9e2ff366fc3a5882289df72e2efd9.tar.xz mana-client-b04dd091b9f9e2ff366fc3a5882289df72e2efd9.zip |
Remove last support #ifdef in the resource code
Diffstat (limited to 'src/net/tmwserv')
-rw-r--r-- | src/net/tmwserv/generalhandler.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/net/tmwserv/generalhandler.cpp b/src/net/tmwserv/generalhandler.cpp index 98c764c5..be05fa91 100644 --- a/src/net/tmwserv/generalhandler.cpp +++ b/src/net/tmwserv/generalhandler.cpp @@ -40,6 +40,8 @@ #include "net/tmwserv/playerhandler.h" #include "net/tmwserv/tradehandler.h" +#include <list> + Net::GeneralHandler *generalHandler; Net::Connection *gameServerConnection = 0; @@ -70,6 +72,23 @@ GeneralHandler::GeneralHandler(): chatServerConnection = Net::getConnection(); 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 = "dex"; stat.tag = N_("Dexterity: %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 = "will"; stat.tag = N_("Willpower: %d"); + stats.push_back(&stat); + + ItemDB::setStatsList(stats); } void GeneralHandler::load() |