EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Development::Bug Reports (https://www.eqemulator.org/forums/forumdisplay.php?f=591)
-   -   HP Regen (https://www.eqemulator.org/forums/showthread.php?t=24739)

moydock 03-25-2008 03:34 PM

HP Regen
 
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:
Code:

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:
Code:

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.


All times are GMT -4. The time now is 10:13 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.