Quote:
Originally Posted by Jimjam
[You must be logged in to view images. Log in or Register.]
On the subject of rounding dmg, how does this work woth the 20 damage intervals? Is it round up to 1 otherwise round to closest?
Code:
for i=1,20
if((i/10*dmg)<1,1,ROUND(i/10*dmg))
What would be the best way to check? A 10 dmg vs 3 dmg weapon on a low level caster?
|
Depends. What line is that code? If the result is stored in an integer type variable, generally speaking it will always round down on a positive value, and up on a negative.