From 081e86a783d33e92d9566f5262b629031887d404 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Oct 2014 15:28:59 +0300 Subject: Move CRIT stat from net enum into attributes. --- src/net/ea/eaprotocol.h | 6 +----- src/net/ea/playerhandler.cpp | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'src/net/ea') 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); -- cgit v1.2.3-70-g09d2