summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-01 17:11:12 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-01 19:28:09 +0300
commit1b9ea6d00c6923abe1da37833e7772d5a5e34b6d (patch)
treea4c4da9f46f171dfd559a10d7fb673164cd03e59 /src/net/ea
parente6eef288f86dcc16aa2b5ba20c9079ead78f17e2 (diff)
downloadmv-1b9ea6d00c6923abe1da37833e7772d5a5e34b6d.tar.gz
mv-1b9ea6d00c6923abe1da37833e7772d5a5e34b6d.tar.bz2
mv-1b9ea6d00c6923abe1da37833e7772d5a5e34b6d.tar.xz
mv-1b9ea6d00c6923abe1da37833e7772d5a5e34b6d.zip
Move LUK stat from net enum into attributes.
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/eaprotocol.h3
-rw-r--r--src/net/ea/playerhandler.cpp4
2 files changed, 3 insertions, 4 deletions
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);