View Single Post
Captain
Join Date: Jun 2012
Posts: 2,250
# 18
02-25-2014, 10:08 AM
Quote:
Originally Posted by abcde123123 View Post

n = number of shots
d = damage per shot
crth = 0.22
crtd = 180

n * crth * d * crtd + n * (1 - crth) * d => n * d * ( crth * crtd + (1 - crth) )

assuming n, d are scalar constants the damage function becomes

crth * crtd + (1 - crth) => (crth : x, crtd : y) =>

Our final function of damage over crth and crtd

dmg = x * y + (1-x)
You made a mistake. The expected damage is

n * crth * d * (1 + crtd) + n * (1 - crth) * d.