summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 16:01:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:09 +0300
commit52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c (patch)
treecf74fecfc3e828a0aefb81545e7e5aca417787c0 /src/net/ea/playerhandler.cpp
parentb43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7 (diff)
downloadmv-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.gz
mv-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.bz2
mv-52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c.tar.xz
mv-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.cpp6
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);