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 | |
parent | b43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7 (diff) | |
download | plus-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.gz plus-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.bz2 plus-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.xz plus-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.zip |
Move MATK stat from net enum into attributes.
Diffstat (limited to 'src/net/ea')
-rw-r--r-- | src/net/ea/eaprotocol.h | 3 | ||||
-rw-r--r-- | src/net/ea/playerhandler.cpp | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/net/ea/eaprotocol.h b/src/net/ea/eaprotocol.h index 618b1c0c8..f355b16a9 100644 --- a/src/net/ea/eaprotocol.h +++ b/src/net/ea/eaprotocol.h @@ -35,8 +35,7 @@ enum EA_LUK, EA_ATK, - EA_DEF, - EA_MATK + EA_DEF }; enum 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); |