summaryrefslogtreecommitdiff
path: root/src/net/ea/charserverhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-14 12:45:55 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-14 12:45:55 +0300
commit27efea7d495fdf755f7e94edb1f39103b6f8f072 (patch)
tree8f9465c9e21a443c9c02fc2f180c1a4ee0756b4a /src/net/ea/charserverhandler.cpp
parentc037b2b49f9967a269032753c7b24961313c723f (diff)
downloadmanaverse-27efea7d495fdf755f7e94edb1f39103b6f8f072.tar.gz
manaverse-27efea7d495fdf755f7e94edb1f39103b6f8f072.tar.bz2
manaverse-27efea7d495fdf755f7e94edb1f39103b6f8f072.tar.xz
manaverse-27efea7d495fdf755f7e94edb1f39103b6f8f072.zip
Move setCharCreateDialog from ea namespace into eathena and tmwa.
Diffstat (limited to 'src/net/ea/charserverhandler.cpp')
-rw-r--r--src/net/ea/charserverhandler.cpp38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/net/ea/charserverhandler.cpp b/src/net/ea/charserverhandler.cpp
index 15bcb135a..e142fe27d 100644
--- a/src/net/ea/charserverhandler.cpp
+++ b/src/net/ea/charserverhandler.cpp
@@ -61,44 +61,6 @@ void CharServerHandler::setCharSelectDialog(CharSelectDialog *const window)
updateCharSelectDialog();
}
-void CharServerHandler::setCharCreateDialog(CharCreateDialog *const window)
-{
- mCharCreateDialog = window;
-
- if (!mCharCreateDialog)
- return;
-
- StringVect attributes;
- // TRANSLATORS: playe stat
- attributes.push_back(_("Strength:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Agility:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Vitality:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Intelligence:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Dexterity:"));
- // TRANSLATORS: playe stat
- attributes.push_back(_("Luck:"));
-
- const Token &token =
- static_cast<LoginHandler*>(Net::getLoginHandler())->getToken();
-
- int minStat = CharDB::getMinStat();
- if (!minStat)
- minStat = 1;
- int maxStat = CharDB::getMaxStat();
- if (!maxStat)
- maxStat = 9;
- int sumStat = CharDB::getSumStat();
- if (!sumStat)
- sumStat = 30;
-
- mCharCreateDialog->setAttributes(attributes, sumStat, minStat, maxStat);
- mCharCreateDialog->setFixedGender(true, token.sex);
-}
-
void CharServerHandler::requestCharacters()
{
connect();