summaryrefslogtreecommitdiff
path: root/src/gui/char_server.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-09-17 00:10:50 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-09-17 00:10:50 +0000
commite454dcd9bc48c884215bb8144f43a10960b5f713 (patch)
tree95b62bff7a51d2325ce0bf9dfc93bc481a19738f /src/gui/char_server.cpp
parent17cab02d4f5e2137ab77bac40884982c6d3651ea (diff)
downloadmana-e454dcd9bc48c884215bb8144f43a10960b5f713.tar.gz
mana-e454dcd9bc48c884215bb8144f43a10960b5f713.tar.bz2
mana-e454dcd9bc48c884215bb8144f43a10960b5f713.tar.xz
mana-e454dcd9bc48c884215bb8144f43a10960b5f713.zip
Now the values shown by derived stats in status win are got from the server. Still, when Equipping/unequipping, you have to warp to get these values updated. Does somebody has an idea how to request an update of these values when equipping/unequipping ?
Diffstat (limited to 'src/gui/char_server.cpp')
-rw-r--r--src/gui/char_server.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/gui/char_server.cpp b/src/gui/char_server.cpp
index 79269a2e..4da8db84 100644
--- a/src/gui/char_server.cpp
+++ b/src/gui/char_server.cpp
@@ -179,28 +179,28 @@ void server_char_server(int serverIndex)
char_info[i]->id = msg.readLong();
char_info[i]->xp = msg.readLong();
char_info[i]->gp = msg.readLong();
- char_info[i]->job_xp = msg.readLong();
- char_info[i]->job_lv = msg.readLong();
+ char_info[i]->jobXp = msg.readLong();
+ char_info[i]->jobLvl = msg.readLong();
msg.skip(8); // unknown
msg.readLong(); // option
msg.readLong(); // karma
msg.readLong(); // manner
msg.skip(2); // unknown
char_info[i]->hp = msg.readShort();
- char_info[i]->max_hp = msg.readShort();
- char_info[i]->sp = msg.readShort();
- char_info[i]->max_sp = msg.readShort();
+ char_info[i]->maxHp = msg.readShort();
+ char_info[i]->mp = msg.readShort();
+ char_info[i]->maxMp = msg.readShort();
msg.readShort(); // speed
msg.readShort(); // class
- char_info[i]->hair_style = msg.readShort();
+ char_info[i]->hairStyle = msg.readShort();
char_info[i]->weapon = msg.readShort();
- char_info[i]->lv = msg.readShort();
+ char_info[i]->lvl = msg.readShort();
msg.readShort(); // skill point
msg.readShort(); // head bottom
msg.readShort(); // shield
msg.readShort(); // head option top
msg.readShort(); // head option mid
- char_info[i]->hair_color = msg.readShort();
+ char_info[i]->hairColor = msg.readShort();
msg.readShort(); // unknown
char_info[i]->name = msg.readString(24);
char_info[i]->STR = msg.readByte();
@@ -209,7 +209,7 @@ void server_char_server(int serverIndex)
char_info[i]->INT = msg.readByte();
char_info[i]->DEX = msg.readByte();
char_info[i]->LUK = msg.readByte();
- msg.readByte(); // character number
+ char_info[i]->characterNumber = msg.readByte(); // character number
msg.readByte(); // unknown
}