summaryrefslogtreecommitdiff
path: root/src/net/tmwa/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 15:16:07 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:08 +0300
commit4fd1fb3701088b62b78e7c90bf4f7e825ff8259a (patch)
tree6c583df75d024708d033c955f13978b7f0fddf01 /src/net/tmwa/playerhandler.cpp
parent4d892bd515041fbabfccc36cd1ea55141cf82c24 (diff)
downloadmv-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.gz
mv-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.bz2
mv-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.tar.xz
mv-4fd1fb3701088b62b78e7c90bf4f7e825ff8259a.zip
Move actual update stats into one function.
Diffstat (limited to 'src/net/tmwa/playerhandler.cpp')
-rw-r--r--src/net/tmwa/playerhandler.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 9ad631d71..f2b47c607 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -25,6 +25,7 @@
#include "configuration.h"
#include "game.h"
#include "soundmanager.h"
+#include "units.h"
#include "being/attributes.h"
#include "being/beingflag.h"
@@ -37,6 +38,7 @@
#include "net/tmwa/messageout.h"
#include "net/tmwa/protocol.h"
+#include "gui/windows/skilldialog.h"
#include "gui/windows/whoisonline.h"
#include "gui/onlineplayer.h"
@@ -470,4 +472,17 @@ void PlayerHandler::setViewEquipment(const bool allow A_UNUSED) const
{
}
+void PlayerHandler::setStat(const int type,
+ const int base,
+ const int mod,
+ const bool notify) const
+{
+ if (type == 500)
+ {
+ localPlayer->setGMLevel(base);
+ return;
+ }
+ Ea::PlayerHandler::setStat(type, base, mod, notify);
+}
+
} // namespace TmwAthena