Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Server Code Submissions

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-24-2010, 06:59 AM
Secrets's Avatar
Secrets
Demi-God
 
Join Date: May 2007
Location: b
Posts: 1,449
Default COMMITTED: Haste over value 127 fix

This will allow added bonuses of 128% haste or higher to be applied properly. Currently if you have a haste bonus of 128% on a single item or spell, it goes into the negatives and doesn't apply it period. However, if you allow the value and cap it, this works more intentionally. Mainly a custom server fix but i'm sure live did it somewhere.

Code:
Index: zone/bonuses.cpp
===================================================================
--- zone/bonuses.cpp	(revision 1744)
+++ zone/bonuses.cpp	(working copy)
@@ -294,7 +294,7 @@
 	}
 	
 	//FatherNitwit: New style haste, shields, and regens
-	if(newbon->haste < (sint8)item->Haste) {
+	if(newbon->haste < (sint16)item->Haste) {
 		newbon->haste = item->Haste;
 	}
 	if(item->Regen > 0)
Index: zone/mob.h
===================================================================
--- zone/mob.h	(revision 1744)
+++ zone/mob.h	(working copy)
@@ -224,9 +224,9 @@
 	uint16	ReverseDamageShieldSpellID;
 	DmgShieldType	ReverseDamageShieldType;
 	int		movementspeed;
-	sint8	haste;
-	sint8	hastetype2;
-	sint8	hastetype3;
+	sint16	haste;
+	sint16	hastetype2;
+	sint16	hastetype3;
 	float	AggroRange;							// when calculate just replace original value with this
 	float	AssistRange;
 	sint16	skillmod[HIGHEST_SKILL+1];
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 11:23 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