From 3bfcee0d9c033a46fe1b13795d89909c8fb6a239 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Sat, 17 Sep 2005 13:25:13 +0000 Subject: Now derived stats are updated on equip/unequip. The status win is also resizable. --- ChangeLog | 2 ++ src/game.cpp | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/ChangeLog b/ChangeLog index 792a3ca5..68d2de43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -20,6 +20,8 @@ are got from the server, and then, are correct ones. * src/gui/minimap.cpp : Only shows the Minimap Window if there's actually a minimap to the current map. + * src/gui/status.cpp, src/game.cpp: The derived stats are now updated + correctly upon equipping/unequipping. 2005-09-16 Bjørn Lindeijer diff --git a/src/game.cpp b/src/game.cpp index 0eed5da9..1f725858 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1516,6 +1516,24 @@ void do_parse() case 0x0009: player_info->statsPointsToAttribute = msg.readLong(); break; + case 0x0029: + player_info->ATK = msg.readLong(); + break; + case 0x002b: + player_info->MATK = msg.readLong(); + break; + case 0x002d: + player_info->DEF = msg.readLong(); + break; + case 0x002f: + player_info->MDEF = msg.readLong(); + break; + case 0x0031: + player_info->HIT = msg.readLong(); + break; + case 0x0032: + player_info->FLEE = msg.readLong(); + break; case 0x0035: player_node->aspd = msg.readLong(); break; -- cgit v1.2.3-70-g09d2