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)

Reply
 
Thread Tools Display Modes
  #1  
Old 08-19-2007, 05:00 AM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default damage reduction

Is there something besides AC that reduces weapon damage done? Aside from parry/block type skills. I'm trying to figure out why a 3 dmg weapon @ lvl 1 hits for 3 max instead of 4.755 as it comes out in the max dmg formula. I set the mobs ac to 1 and i still hit for 3. Here's the equation and the math:

max_hit = (weapon_damage * (((GetSTR()*20) + (GetSkill(OFFENSE)*15) + (mylevel*10)) / 1000));

max_hit = (3 * (((75*20) + (5*15) + (1*10)) / 1000));
max_hit = (3 * (((1500) + (75) + (10)) / 1000));
max_hit = (3 * (1585) / 1000));
max_hit = (3 * 1.585);
max_hit = (3 * 1.585);
max_hit = (4.755);
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #2  
Old 08-19-2007, 05:58 AM
KLS
Administrator
 
Join Date: Sep 2006
Posts: 1,348
Default

max_hit is an int so it can't store the 1.585 so it rounds to 1.

AC doesn't lower damage done yet.

As the comment above it states, there's some work to be done there.

However if you wanted to change it for now so it would work:

Code:
max_hit = (weapon_damage * ((GetSTR()*20) + (GetSkill(OFFENSE)*15) + (mylevel*10))) / 1000;
Reply With Quote
  #3  
Old 08-19-2007, 07:03 AM
moydock
Discordant
 
Join Date: Jun 2005
Posts: 286
Default

OH! Okay, i'm dumb, I should have thought of that. I remembered int couldn't do decimals but I was only thinking about the ending result, not the actual calculation. Sorry for wasting your time <3. I'm just starting to figure out c++.
__________________
-Croup (the rogue)
Creator of Pandemic (PvP-Racewars)
Reply With Quote
  #4  
Old 08-21-2007, 07:55 AM
sfisque
Hill Giant
 
Join Date: Oct 2006
Posts: 248
Default

not sure if this is pertinent, but for anyone interested in updating the combat swing code, i found this info at steelwarrior:

http://www.thesteelwarrior.org/forum...hread.php?t=13

mostly data crunching, but some good "math modelling" going on to give insight to how Live did (does?) it.

== sfisque
Reply With Quote
  #5  
Old 08-21-2007, 08:14 AM
oldlurker
Fire Beetle
 
Join Date: Jul 2007
Posts: 27
Default

The Tome of Knowledge Board from Paladins of Norrath also has an boatload of information from before and after the melee revamp.

http://p202.ezboard.com/Tomes-of-Kno...mesofknowledge
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 11: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