From 52c0fc91e3b59b0f9a2cac98cb4cd1eb5847884c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Oct 2014 16:01:43 +0300 Subject: Move MATK stat from net enum into attributes. --- src/net/tmwa/attrs.h | 3 +-- src/net/tmwa/generalhandler.cpp | 2 +- src/net/tmwa/playerhandler.cpp | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) (limited to 'src/net/tmwa') 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+")); -- cgit v1.2.3-70-g09d2