Displaying 1 result from an estimated 1 matches for "knockback".
2006 May 12
6
Newbie to R: would like to solve a problem
...r when it takes 10 or 15 hits to destroy a single enemy, Central
Limit Theorm kicks in and normal curve is probably a good idea, but my
gut feeling is that it is not accurate for estimating kills in 1 or 2
shots (which happens in the majority of "training" monsters), or the
probability of Knockback (which is always determined by a single
shot).
The (simplified) function to represent the damage would be:
sdmg <- function(min, max, skill){
if(runif(1) > .4) (runif(1) * (max-min) + min) * skill
else (runif(1) * (max-min) + min) * (skill+1)
}
total_damage <- function(min, max, sk...