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 02-13-2008, 02:18 AM
valcree
Fire Beetle
 
Join Date: Jan 2007
Posts: 11
Default Ac?

I was playing around with my parser last night and ac didn't seem to be making any difference no matter how high I upped the ac of the char I was using.

I was just poking around a bit in zone/attack.cpp Mob::MeleeMitigation and I found this.

int acfail=1000;
char tmp[10];

if (database.GetVariable("ACfail", tmp, 9)) {
acfail = (int) (atof(tmp) * 100);
if (acfail>100) acfail=100;
}

if (acfail<=0 || rand%101>acfail) {
..reduces damage according to the ac of whoever is being hit and whateva acrandom is set to....
}

So if I'm reading that right no matter what ACFail is set to in the database the AC check has a 99% chance to fail, and damage will almost always be applied as if the mob/char being hit is not weiring any armor. Of course that section of code may not be being used, or I could just be off my head. Anyways, I've changed mine. Just thought you might wanna take a look...?
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 02:02 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