View Full Version : HP Regen
moydock
03-25-2008, 03:34 PM
HP as a lvl 1 iksar/troll is 3 standing and 6 sitting per tick. This is pretty high. The correct values are in the eqemu code in client_process.cpp. But for some reason the client is doing it's own thing. Is HP regen built into the client now or am I not looking at the correct code? Or is it bugged...
moydock
03-26-2008, 12:10 PM
More on this -
If you take the following code in client_process.cpp:
void Client::DoHPRegen() {
sint32 normal_regen = LevelRegen();
sint32 item_regen = itembonuses.HPRegen;
sint32 spell_regen = spellbonuses.HPRegen;
sint32 total_regen = normal_regen + item_regen + spell_regen;
total_regen = (total_regen * RuleI(Character, HPRegenMultiplier)) / 100;
SetHP(GetHP() + total_regen);
SendHPUpdate();
and change it to:
void Client::DoHPRegen() {
total_regen = 10;
SetHP(GetHP() + total_regen);
SendHPUpdate();
it works, you regen 10 per tick.
So, something is getting screwed up in that code. I know HPRegenMultiplier isn't it because I tried removing that and testing it. I'll do further testing and report which funtion is causing it. That's about as far as my knowledge will go though.
moydock
03-26-2008, 01:45 PM
Never mind, I was misreading the code, I think it's functioning correctly.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.