View Single Post
  #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