(no subject)
Apr. 5th, 2005 05:38 pmso, geek time: i'm trying to figure out a formula for damage per second in world of warcraft for poisons.
for instant poisons it's pretty easy: chance to hit, times damage, divided by speed of weapon. so for a poison with a 20% hit chance, 105 damage, and a weapon with 2.7 sec speed, the average damage per second is 7.778
however, for poison over time, it's more difficult. for example, a poison with a 30% chance to hit, 80 damage over 12 seconds, and a 2.7 sec weapon speed. having written it all out (based on the stats, on average it goes off every nine seconds, which means average 8 seconds of nothing, 9 seconds of 6.667 damage, then three seconds of 13.332 damage (as it goes off again, stacking with the first dot), then 6 secs of 6.667 dam, blah blah blah) i know that the average damage per second is 8.066. but how do i make a formula for that?
for instant poisons it's pretty easy: chance to hit, times damage, divided by speed of weapon. so for a poison with a 20% hit chance, 105 damage, and a weapon with 2.7 sec speed, the average damage per second is 7.778
however, for poison over time, it's more difficult. for example, a poison with a 30% chance to hit, 80 damage over 12 seconds, and a 2.7 sec weapon speed. having written it all out (based on the stats, on average it goes off every nine seconds, which means average 8 seconds of nothing, 9 seconds of 6.667 damage, then three seconds of 13.332 damage (as it goes off again, stacking with the first dot), then 6 secs of 6.667 dam, blah blah blah) i know that the average damage per second is 8.066. but how do i make a formula for that?