View Single Post
  #2  
Old 01-06-2008, 04:04 AM
zeiksz2
Fire Beetle
 
Join Date: Oct 2007
Posts: 20
Default quickfix: sitting

quickfix: sitting

if other is sitting then we are to hit max damage. we did not count max damage, what is actually the top of the makerandomint.. so the damage calculation splits up into two lines

Code:
			max_dmg=(weapon_damage * ((GetSTR()*20) + (GetSkill(OFFENSE)*15) + (mylevel*10)) / 1000);
			damage=MakeRandomInt(1,max_dmg+eleBane);
and so we set up the variable max_dmg for the sitting damage (what is not makerandomint, but damage=max_dmg+elebane).
Reply With Quote