diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-01 15:47:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-01 19:28:09 +0300 |
commit | b43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7 (patch) | |
tree | 3cda23e27408e56cce7b63aa0dd490af72ab94c1 /src/net/tmwa | |
parent | 41b320bbdbcdc6bc158ab9dde9741ac50f194936 (diff) | |
download | plus-b43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7.tar.gz plus-b43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7.tar.bz2 plus-b43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7.tar.xz plus-b43ec95b7046619a35f5bdf2f3c1bb3e9663bdb7.zip |
Move MDEF stat from net enum into attributes.
Diffstat (limited to 'src/net/tmwa')
-rw-r--r-- | src/net/tmwa/attrs.h | 3 | ||||
-rw-r--r-- | src/net/tmwa/generalhandler.cpp | 2 | ||||
-rw-r--r-- | src/net/tmwa/playerhandler.cpp | 4 |
3 files changed, 4 insertions, 5 deletions
diff --git a/src/net/tmwa/attrs.h b/src/net/tmwa/attrs.h index 04a49a9ca..50a7ca977 100644 --- a/src/net/tmwa/attrs.h +++ b/src/net/tmwa/attrs.h @@ -38,8 +38,7 @@ namespace TmwAthena ATK, DEF, - MATK, - MDEF + MATK }; } // namespace TmwAthena diff --git a/src/net/tmwa/generalhandler.cpp b/src/net/tmwa/generalhandler.cpp index 3ec0e234d..effe75204 100644 --- a/src/net/tmwa/generalhandler.cpp +++ b/src/net/tmwa/generalhandler.cpp @@ -324,7 +324,7 @@ void GeneralHandler::gameStarted() const // TRANSLATORS: player stat statusWindow->addAttribute(MATK, _("M.Attack")); // TRANSLATORS: player stat - statusWindow->addAttribute(MDEF, _("M.Defense")); + statusWindow->addAttribute(Attributes::MDEF, _("M.Defense")); // TRANSLATORS: player stat // xgettext:no-c-format statusWindow->addAttribute(Attributes::HIT, _("% Accuracy")); diff --git a/src/net/tmwa/playerhandler.cpp b/src/net/tmwa/playerhandler.cpp index 514a1d839..857ac1e8d 100644 --- a/src/net/tmwa/playerhandler.cpp +++ b/src/net/tmwa/playerhandler.cpp @@ -413,8 +413,8 @@ void PlayerHandler::processPlayerStatUpdate5(Net::MessageIn &msg) PlayerInfo::setStatBase(DEF, msg.readInt16("def"), false); PlayerInfo::setStatMod(DEF, msg.readInt16("def+")); - PlayerInfo::setStatBase(MDEF, msg.readInt16("mdef"), false); - PlayerInfo::setStatMod(MDEF, msg.readInt16("mdef+")); + PlayerInfo::setStatBase(Attributes::MDEF, msg.readInt16("mdef"), false); + PlayerInfo::setStatMod(Attributes::MDEF, msg.readInt16("mdef+")); PlayerInfo::setStatBase(Attributes::HIT, msg.readInt16("hit")); |