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.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 02-21-2009, 04:27 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

The reason we mult by 10 is so it's compatible with the item bonuses, which is clearly labeled in the comments right by it. You can either multiply it by 10 in the bonuses or in the combat code, either way it has to get done to combine them in one call but bonuses are called much less frequently than combat typically so it makes sense to put them in bonuses.

The problem was until recently it was divided by 100 instead of the 1250.. tho I'm not sure where the extra 250 is supposed to be coming from it should be 1000. So avoidance was 10x more powerful than it was supposed to be. Coupled with the fact that the hit chance calculation goes kinda low atm it's just a mess.

You take item avoidance where 10 = 1% and you take spell avoidance where 1 = 1%

Say you have capped avoidance at 100 and have evasive running at a 65% chance to be hit.

Code:
100 + (50 * 10)
100 + 500
600

65 - ((600 * 65) / 1000)
65 - (39000 / 1000)
65 - 39

26% chance to hit
That's how it should work but not how it was working which was more like:

Code:
100 + (50 * 10)
100 + 500
600

65 - ((600 * 65) / 100)
65 - (39000 / 100)
65 - 390

-325 < 5
5 % chance to hit
As to the original question: it will affect both but players are far more likely to have avoidance mods than npcs.
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:05 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