summaryrefslogtreecommitdiff
path: root/src/net/tmwa
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/tmwa
parentb43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7 (diff)
downloadplus-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/tmwa')
-rw-r--r--src/net/tmwa/attrs.h3
-rw-r--r--src/net/tmwa/generalhandler.cpp2
-rw-r--r--src/net/tmwa/playerhandler.cpp4
3 files changed, 4 insertions, 5 deletions
diff --git a/src/net/tmwa/attrs.h b/src/net/tmwa/attrs.h
index 50a7ca977..03c38d804 100644
--- a/src/net/tmwa/attrs.h
+++ b/src/net/tmwa/attrs.h
@@ -37,8 +37,7 @@ namespace TmwAthena
LUK,
ATK,
- DEF,
- MATK
+ DEF
};
} // namespace TmwAthena
diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp
index effe75204..0fdb7017c 100644
--- a/src/net/tmwa/generalhandler.cpp
+++ b/src/net/tmwa/generalhandler.cpp
@@ -322,7 +322,7 @@ void GeneralHandler::gameStarted() const
// TRANSLATORS: player stat
statusWindow->addAttribute(DEF, _("Defense"));
// TRANSLATORS: player stat
- statusWindow->addAttribute(MATK, _("M.Attack"));
+ statusWindow->addAttribute(Attributes::MATK, _("M.Attack"));
// TRANSLATORS: player stat
statusWindow->addAttribute(Attributes::MDEF, _("M.Defense"));
// TRANSLATORS: player stat
diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp
index 857ac1e8d..247a0f6d9 100644
--- a/src/net/tmwa/playerhandler.cpp
+++ b/src/net/tmwa/playerhandler.cpp
@@ -405,10 +405,10 @@ void PlayerHandler::processPlayerStatUpdate5(Net::MessageIn &msg)
PlayerInfo::updateAttrs();
val = msg.readInt16("matk");
- PlayerInfo::setStatBase(MATK, val, false);
+ PlayerInfo::setStatBase(Attributes::MATK, val, false);
val = msg.readInt16("matk+");
- PlayerInfo::setStatMod(MATK, val);
+ PlayerInfo::setStatMod(Attributes::MATK, val);
PlayerInfo::setStatBase(DEF, msg.readInt16("def"), false);
PlayerInfo::setStatMod(DEF, msg.readInt16("def+"));