From 624ddd306ebbd1cfdfd5bf85832ee969e15a619c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 1 Oct 2014 18:38:46 +0300 Subject: Move JOB stat from net enum into attributes. --- src/net/ea/playerhandler.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) (limited to 'src/net/ea/playerhandler.cpp') diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp index 4bdc2bc8b..8a2b2bf30 100644 --- a/src/net/ea/playerhandler.cpp +++ b/src/net/ea/playerhandler.cpp @@ -279,11 +279,6 @@ bool PlayerHandler::canUseMagic() const return PlayerInfo::getStatEffective(Attributes::MATK) > 0; } -int PlayerHandler::getJobLocation() const -{ - return EA_JOB; -} - #define setStatComplex(stat) \ PlayerInfo::setStatBase(stat, base, notify); \ if (mod != -1) \ @@ -306,8 +301,8 @@ void PlayerHandler::setStat(const int type, PlayerInfo::setAttribute(Attributes::EXP, base); break; case 0x0002: - PlayerInfo::setStatExperience(EA_JOB, base, - PlayerInfo::getStatExperience(EA_JOB).second); + PlayerInfo::setStatExperience(Attributes::JOB, base, + PlayerInfo::getStatExperience(Attributes::JOB).second); break; case 0x0003: PlayerInfo::setStatBase(Attributes::KARMA, base); @@ -406,8 +401,8 @@ void PlayerHandler::setStat(const int type, PlayerInfo::setAttribute(Attributes::EXP_NEEDED, base); break; case 0x0017: - PlayerInfo::setStatExperience(EA_JOB, - PlayerInfo::getStatExperience(EA_JOB).first, base); + PlayerInfo::setStatExperience(Attributes::JOB, + PlayerInfo::getStatExperience(Attributes::JOB).first, base); break; case 0x0018: if (!weightNotice && config.getBoolValue("weightMsg")) @@ -517,7 +512,7 @@ void PlayerHandler::setStat(const int type, PlayerInfo::updateAttrs(); break; case 0x0037: - PlayerInfo::setStatBase(EA_JOB, base); + PlayerInfo::setStatBase(Attributes::JOB, base); break; default: -- cgit v1.2.3-70-g09d2