diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-03-08 21:13:51 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-03-08 21:13:51 +0300 |
commit | b43a9478fb7af4a2352f55395bdeda5067b5f721 (patch) | |
tree | e4b9e1b842c786d2157c3902d885e24850073da8 /src/net | |
parent | 6ccaaa586b3f4d739ccfa1dc90cdf96b8810d31a (diff) | |
download | manaverse-b43a9478fb7af4a2352f55395bdeda5067b5f721.tar.gz manaverse-b43a9478fb7af4a2352f55395bdeda5067b5f721.tar.bz2 manaverse-b43a9478fb7af4a2352f55395bdeda5067b5f721.tar.xz manaverse-b43a9478fb7af4a2352f55395bdeda5067b5f721.zip |
Add into tmwa Sp constants value GM_LEVEL.
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/sp.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index d9f391853..33481d85a 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -408,7 +408,7 @@ void PlayerHandler::setStat(Net::MessageIn &msg, case Sp::JOB: PlayerInfo::setStatBase(Attributes::JOB, base); break; - case 500: + case Sp::GM_LEVEL: localPlayer->setGMLevel(base); break; diff --git a/src/net/tmwa/sp.h b/src/net/tmwa/sp.h index f1c8a3a19..01a552ea5 100644 --- a/src/net/tmwa/sp.h +++ b/src/net/tmwa/sp.h @@ -69,7 +69,9 @@ namespace Sp FLEE_MOD = 51, CRIT = 52, ATTACK_DELAY = 53, - JOB = 55 + JOB = 55, + + GM_LEVEL = 500 }; } // namespace Sp |