diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-01 16:01:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-01 19:28:09 +0300 |
commit | 52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c (patch) | |
tree | cf74fecfc3e828a0aefb81545e7e5aca417787c0 /src/net/ea/playerhandler.cpp | |
parent | b43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7 (diff) | |
download | manaverse-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.gz manaverse-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.bz2 manaverse-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.xz manaverse-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.zip |
Move MATK stat from net enum into attributes.
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r-- | src/net/ea/playerhandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index 63b865784..4c9f5be61 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -278,7 +278,7 @@ void PlayerHandler::processPlayerArrowMessage(Net::MessageIn &msg) bool PlayerHandler::canUseMagic() const { - return PlayerInfo::getStatEffective(EA_MATK) > 0; + return PlayerInfo::getStatEffective(Attributes::MATK) > 0; } int PlayerHandler::getJobLocation() const @@ -488,10 +488,10 @@ void PlayerHandler::setStat(const int type, PlayerInfo::updateAttrs(); break; case 0x002b: - PlayerInfo::setStatBase(EA_MATK, base); + PlayerInfo::setStatBase(Attributes::MATK, base); break; case 0x002c: - PlayerInfo::setStatMod(EA_MATK, base); + PlayerInfo::setStatMod(Attributes::MATK, base); break; case 0x002d: PlayerInfo::setStatBase(EA_DEF, base); |