HP lost is 2x Dmg Taken
When in combat, the combat log will show, "x hits for 4 damage". However, when looking at my hitpoints in my inventory window, and at the hitpoint % on my health bar, I'm seeing 2x enemy damage reflected. I.e., I see HP: 92/100 (-8 hp), and 92%, respectively. Has anyone else experienced this, or have any immediate thoughts, before I put myself through the displeasure of suffering through the hot mess that is the server code?
Also, should the files in .\eqemu\shared\ folder rebuild with each server launch? Mine do not, unless I manually delete them first. Is this the intended behavior? |
Revised my original post, so this response is no longer relevant.
|
I believe this to be a bug in the below code, and will post in the Bug section accordingly. For the sake of others, I'll include my findings here as well.
In mob.cpp, in the Mob::SendHPUpdate function, the cur_hp and max_hp values set in the packet are reduced by any HP gained from items. This is resulting in the client showing 2x the damage taken, both in the inventory window and on the health bar. Code:
void Mob::SendHPUpdate(bool force_update_all) Code:
hp_packet_client->cur_hp = CastToClient()->GetHP(); // static_cast<uint32>(CastToClient()->GetHP() - itembonuses.HP); |
All times are GMT -4. The time now is 05:01 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.