diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-10-01 18:38:46 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-10-01 19:28:09 +0300 |
commit | 624ddd306ebbd1cfdfd5bf85832ee969e15a619c (patch) | |
tree | d36e74e62836de01727fc0a440f3a70cabc91acd /src/being | |
parent | 1d6c226f2aae2410f9785709aefd88f1a17e6bca (diff) | |
download | manaplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.gz manaplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.bz2 manaplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.tar.xz manaplus-624ddd306ebbd1cfdfd5bf85832ee969e15a619c.zip |
Move JOB stat from net enum into attributes.
Diffstat (limited to 'src/being')
-rw-r--r-- | src/being/attributes.h | 7 | ||||
-rw-r--r-- | src/being/localplayer.cpp | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/being/attributes.h b/src/being/attributes.h index 6bd255f29..74ae7529e 100644 --- a/src/being/attributes.h +++ b/src/being/attributes.h @@ -39,15 +39,16 @@ namespace Attributes MONEY, TOTAL_WEIGHT, MAX_WEIGHT, - SKILL_POINTS, - CHAR_POINTS, - CORR_POINTS, + JOB = 10, STR = 13, AGI = 14, VIT = 15, INT = 16, DEX = 17, LUK = 18, + SKILL_POINTS, + CHAR_POINTS, + CORR_POINTS, ATTACK_DELAY = 100, ATTACK_RANGE = 101, WALK_SPEED = 102, diff --git a/src/being/localplayer.cpp b/src/being/localplayer.cpp index 3f775b321..b747c78bd 100644 --- a/src/being/localplayer.cpp +++ b/src/being/localplayer.cpp @@ -1037,7 +1037,7 @@ void LocalPlayer::statChanged(const int id, const int oldVal1, const int oldVal2) { - if (!mShowJobExp || id != playerHandler->getJobLocation()) + if (!mShowJobExp || id != Attributes::JOB) return; const std::pair<int, int> exp = PlayerInfo::getStatExperience(id); |