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?