View Single Post
  #7  
Old 06-04-2002, 07:33 AM
PrivateIdaho
Fire Beetle
 
Join Date: Jun 2002
Posts: 23
Default Thx

Thanks Image, for noting it.. Looking at the code, it looks like it SHOULD be factoring it in.


Quote:

from attack.cpp

for (int ix = 0;ix != atks;ix++){
if(min_dmg != 0 && max_dmg != 0 && min_dmg <= max_dmg)
{
if (max_dmg == min_dmg)
damage = min_dmg;

else
currenthit = min_dmg + (float)rand()/RAND_MAX*(max_dmg-min_dmg);
}
else
currenthit = (float)basedamage-basedamage/100*25 + (float)rand()/RAND_MAX *$
damage = currenthit - (float)basedamage/100*basedefend;

It looks like it should be working.. what's missing.
Reply With Quote