summaryrefslogtreecommitdiff
path: root/src/net/ea/playerhandler.cpp
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-07-06 13:06:12 -0600
committerJared Adams <jaxad0127@gmail.com>2009-07-06 13:06:12 -0600
commit851f67cd9975b090b051decb1deab6b0489d14c5 (patch)
tree05e4256f0ec5128cc0bee41b3992f3c8c0111926 /src/net/ea/playerhandler.cpp
parente0de8a124bf94b79d9d64e5406b21e8598a05d56 (diff)
downloadmana-851f67cd9975b090b051decb1deab6b0489d14c5.tar.gz
mana-851f67cd9975b090b051decb1deab6b0489d14c5.tar.bz2
mana-851f67cd9975b090b051decb1deab6b0489d14c5.tar.xz
mana-851f67cd9975b090b051decb1deab6b0489d14c5.zip
Merge some player stats
Diffstat (limited to 'src/net/ea/playerhandler.cpp')
-rw-r--r--src/net/ea/playerhandler.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/playerhandler.cpp b/src/net/ea/playerhandler.cpp
index 58167339..40cfc71c 100644
--- a/src/net/ea/playerhandler.cpp
+++ b/src/net/ea/playerhandler.cpp
@@ -229,7 +229,7 @@ void PlayerHandler::handleMessage(MessageIn &msg)
case 0x0007: player_node->mMp = value; break;
case 0x0008: player_node->mMaxMp = value; break;
case 0x0009:
- player_node->mStatsPointsToAttribute = value;
+ player_node->setCharacterPoints(value);
break;
case 0x000b: player_node->setLevel(value); break;
case 0x000c:
@@ -276,7 +276,7 @@ void PlayerHandler::handleMessage(MessageIn &msg)
case SMSG_PLAYER_STAT_UPDATE_2:
switch (msg.readInt16()) {
case 0x0001:
- player_node->setXp(msg.readInt32());
+ player_node->setLevelProgress(msg.readInt32());
break;
case 0x0002:
player_node->mJobXp = msg.readInt32();
@@ -351,7 +351,7 @@ void PlayerHandler::handleMessage(MessageIn &msg)
// Updates stats and status points
case SMSG_PLAYER_STAT_UPDATE_5:
- player_node->mStatsPointsToAttribute = msg.readInt16();
+ player_node->setCharacterPoints(msg.readInt16());
player_node->mAttr[LocalPlayer::STR] = msg.readInt8();
player_node->mAttrUp[LocalPlayer::STR] = msg.readInt8();
player_node->mAttr[LocalPlayer::AGI] = msg.readInt8();