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

Reply
 
Thread Tools Display Modes
  #1  
Old 03-13-2008, 01:51 PM
LordKahel
Fire Beetle
 
Join Date: Sep 2007
Posts: 22
Default Support for defensive Instinct and Reflexive Mastery AA.

Simple code change to support those 2 defensive AAs that can be bought.

Both changes are in attack.cpp

in Mob::CheckHitChance
Code:
	AA_mod += 3*GetAA(aaPhysicalEnhancement);
	AA_mod += 2*GetAA(aaLightningReflexes);
	AA_Mod += GetAA(aaReflexiveMastery);
	chancetohit -= chancetohit * AA_mod / 100;
and in Mob::MeleeMitigation

Code:
	totalMit += GetAA(aaPhysicalEnhancement)*2;
	totalMit += GetAA(aaInnateDefense);
	totalMit += GetAA(aaDefensiveInstincts)*0.5;

	if(RuleB(Combat, UseIntervalAC)){
in both case just add the bold line.


--
Kahell/Pyronis
Dev Jest 3 Server
Reply With Quote
  #2  
Old 03-31-2008, 01:59 AM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Very nice. Should get these AAs working without too much extra hassle
Reply With Quote
  #3  
Old 04-09-2008, 03:38 PM
LordKahel
Fire Beetle
 
Join Date: Sep 2007
Posts: 22
Default

Correction for reflexive mastery

Code:
	AA_mod += 3*GetAA(aaPhysicalEnhancement);
	AA_mod += 2*GetAA(aaLightningReflexes);
	AA_mod += GetAA(aaReflexiveMastery);
	chancetohit -= chancetohit * AA_mod / 100;
Changed AA_Mod to AA_mod
Reply With Quote
  #4  
Old 06-19-2008, 10:57 AM
Scorpious2k's Avatar
Scorpious2k
Demi-God
 
Join Date: Mar 2003
Location: USA
Posts: 1,067
Default

This is now in version 1115.
__________________
Maybe I should try making one of these servers...
Reply With Quote
Reply


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 04:58 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3