summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 15:28:59 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:08 +0300
commit081e86a783d33e92d9566f5262b629031887d404 (patch)
treef5a5004837089887fc3a8d99093e8beae9236727 /src/net/ea
parenta001d8490f6996d5228d0e86ef3b3c6ee1712c47 (diff)
downloadmv-081e86a783d33e92d9566f5262b629031887d404.tar.gz
mv-081e86a783d33e92d9566f5262b629031887d404.tar.bz2
mv-081e86a783d33e92d9566f5262b629031887d404.tar.xz
mv-081e86a783d33e92d9566f5262b629031887d404.zip
Move CRIT stat from net enum into attributes.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/eaprotocol.h6
-rw-r--r--src/net/ea/playerhandler.cpp2
2 files changed, 2 insertions, 6 deletions
diff --git a/src/net/ea/eaprotocol.h b/src/net/ea/eaprotocol.h
index 226bb7401..5bb9ef46d 100644
--- a/src/net/ea/eaprotocol.h
+++ b/src/net/ea/eaprotocol.h
@@ -39,11 +39,7 @@ enum
EA_MATK,
EA_MDEF,
EA_HIT,
- EA_FLEE,
- EA_CRIT
-
-// KARMA,
-// MANNER
+ EA_FLEE
};
enum
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 831bc08e0..cafd4b681 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -515,7 +515,7 @@ void PlayerHandler::setStat(const int type,
PlayerInfo::setStatMod(EA_FLEE, base);
break;
case 0x0034:
- PlayerInfo::setStatBase(EA_CRIT, base);
+ PlayerInfo::setStatBase(Attributes::CRIT, base);
break;
case 0x0035:
localPlayer->setAttackSpeed(base);