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

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 04-30-2009, 12:27 AM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default In regards to min/max dmg

Not sure where to put this, but is there any reason mindmg/maxdmg in the database is an int16 versus it being an int32, which is the maximum value for damage?

I'm looking in code at npc.h,

Quote:
int16 max_dmg;
int16 min_dmg;
and noticed NPCs and players cannot hit for more than an int16, but damage is clearly an int32, and was wondering if there is any reasoning behind doing this specifically for learning purposes. Also, I noticed haste is an int8 in mob.h, when all of that calculation for haste is done serverside and is actually an sint32 in the structure. I noticed it is sometimes possible to stack haste to over the max value for an int8, and this will break things to all hell.

Is there any reason we do this, though? Or is it safe to change them from int16 and int8 to int32?
Reply With Quote
 


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 09:09 AM.


 

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