diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-04-27 16:43:59 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2013-04-27 19:23:03 +0200 |
commit | 1a99d37d059df95f6a144c4f9e9fa85dacefd185 (patch) | |
tree | 0d8042ccc063567989c0e944d8a086b41c79210f /src/net/tmwa/charserverhandler.cpp | |
parent | acf585aa5354367b771c7e3b136671d5bc938c79 (diff) | |
download | mana-client-1a99d37d059df95f6a144c4f9e9fa85dacefd185.tar.gz mana-client-1a99d37d059df95f6a144c4f9e9fa85dacefd185.tar.bz2 mana-client-1a99d37d059df95f6a144c4f9e9fa85dacefd185.tar.xz mana-client-1a99d37d059df95f6a144c4f9e9fa85dacefd185.zip |
Always read the attributes.xml file
This way it can also be used when connecting to a tmwAthena server for
customizing the min/max of attributes and the amount of starting points.
Mantis-issue: 501
Reviewed-by: Ablu
Diffstat (limited to 'src/net/tmwa/charserverhandler.cpp')
-rw-r--r-- | src/net/tmwa/charserverhandler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/net/tmwa/charserverhandler.cpp b/src/net/tmwa/charserverhandler.cpp index ce193821..cc242951 100644 --- a/src/net/tmwa/charserverhandler.cpp +++ b/src/net/tmwa/charserverhandler.cpp @@ -38,6 +38,7 @@ #include "net/tmwa/network.h" #include "net/tmwa/protocol.h" +#include "resources/attributes.h" #include "resources/hairdb.h" #include "utils/dtor.h" @@ -278,7 +279,10 @@ void CharServerHandler::setCharCreateDialog(CharCreateDialog *window) const Token &token = static_cast<LoginHandler*>(Net::getLoginHandler())->getToken(); - mCharCreateDialog->setAttributes(attributes, 30, 1, 9); + mCharCreateDialog->setAttributes(attributes, + Attributes::getCreationPoints(), + Attributes::getAttributeMinimum(), + Attributes::getAttributeMaximum()); mCharCreateDialog->setFixedGender(true, token.sex); } |