Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Development > Archive::Development

Archive::Development Archive area for Development's posts that were moved here after an inactivity period of 90 days.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 03-27-2002, 07:38 AM
Kaiyodo
Hill Giant
 
Join Date: Jan 2002
Location: Midlands,UK
Posts: 149
Default

I said 'modifications', didn't claim all the code was mine!

I modified the min/max damage calc ..

Code:
int max_hit = weapon_damage * ((GetSTR() + pp.skills[skillinuse]) / 100);	// Apply damage formula
and changed the damage bonus calcs, lines 163-194 in attack.cpp

What exactly do you mean about floats and rand_max? There's a few calls to (rand()%rand_max) in my DW/DA code, which I used as there didn't seem to be a faster alternative available to get a random float number between 0 and 1. I wouldn't imagine doing two divides 4 times every second (assuming quad attack with max haste) per player would hurt any PC made withing the last 5 years

K.
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 10:10 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