Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Bug Reports

Development::Bug Reports Post detailed bug reports and what you would like to see next in the emu here.

Reply
 
Thread Tools Display Modes
  #1  
Old 03-25-2008, 03:34 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default 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...
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #2  
Old 03-26-2008, 12:10 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

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.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #3  
Old 03-26-2008, 01:45 PM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

Never mind, I was misreading the code, I think it's functioning correctly.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 01:52 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3