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 | |
parent | 255c491375005abb1d2de22fa5aa1a821ac3a4f6 (diff) | |
download | Mana-b04dd091b9f9e2ff366fc3a5882289df72e2efd9.tar.gz Mana-b04dd091b9f9e2ff366fc3a5882289df72e2efd9.tar.bz2 Mana-b04dd091b9f9e2ff366fc3a5882289df72e2efd9.tar.xz Mana-b04dd091b9f9e2ff366fc3a5882289df72e2efd9.zip |
Remove last support #ifdef in the resource code
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/ea/generalhandler.cpp | 21 | ||||
-rw-r--r-- | src/net/tmwserv/generalhandler.cpp | 19 |
2 files changed, 40 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() 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() |