From 1d6c226f2aae2410f9785709aefd88f1a17e6bca Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Oct 2014 17:44:52 +0300 Subject: Move STR stat from net enum into attributes. --- src/net/ea/eaprotocol.h | 4 +--- src/net/ea/playerhandler.cpp | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/net/ea') diff --git a/src/net/ea/eaprotocol.h b/src/net/ea/eaprotocol.h index 00240d574..a34681309 100644 --- a/src/net/ea/eaprotocol.h +++ b/src/net/ea/eaprotocol.h @@ -25,9 +25,7 @@ enum { - EA_JOB = 0xa, - - EA_STR = 0xd + EA_JOB = 0xa }; enum diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index 96b8e6b23..4bdc2bc8b 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -367,7 +367,7 @@ void PlayerHandler::setStat(const int type, skillDialog->update(); break; case 0x000d: - setStatComplex(EA_STR); + setStatComplex(Attributes::STR); break; case 0x000e: setStatComplex(Attributes::AGI); @@ -455,7 +455,7 @@ void PlayerHandler::setStat(const int type, PlayerInfo::setAttribute(Attributes::MAX_WEIGHT, base); break; case 0x0020: - statusWindow->setPointsNeeded(EA_STR, base); + statusWindow->setPointsNeeded(Attributes::STR, base); break; case 0x0021: statusWindow->setPointsNeeded(Attributes::AGI, base); -- cgit v1.2.3-70-g09d2