From 1b9ea6d00c6923abe1da37833e7772d5a5e34b6d Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Oct 2014 17:11:12 +0300 Subject: Move LUK stat from net enum into attributes. --- src/net/ea/eaprotocol.h | 3 +-- src/net/ea/playerhandler.cpp | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/eaprotocol.h b/src/net/ea/eaprotocol.h index 98ed935f9..0ab833e5c 100644 --- a/src/net/ea/eaprotocol.h +++ b/src/net/ea/eaprotocol.h @@ -31,8 +31,7 @@ enum EA_AGI, EA_VIT, EA_INT, - EA_DEX, - EA_LUK + EA_DEX }; enum diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index cc2de72c7..f16f6103f 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -382,7 +382,7 @@ void PlayerHandler::setStat(const int type, setStatComplex(EA_DEX); break; case 0x0012: - setStatComplex(EA_LUK); + setStatComplex(Attributes::LUK); break; case 0x0014: { @@ -470,7 +470,7 @@ void PlayerHandler::setStat(const int type, statusWindow->setPointsNeeded(EA_DEX, base); break; case 0x0025: - statusWindow->setPointsNeeded(EA_LUK, base); + statusWindow->setPointsNeeded(Attributes::LUK, base); break; case 0x0029: PlayerInfo::setStatBase(Attributes::ATK, base); -- cgit v1.2.3-70-g09d2