MHB Formula for calculating DPS (damage per second)

  • Thread starter Thread starter El Demente
  • Start date Start date
  • Tags Tags
    Formula Per
AI Thread Summary
To calculate the damage per second (DPS) for a character with doublestrike in a video game, the base damage formula is derived from the character's attack damage (AD) and attack speed (AS). The character strikes twice every fourth attack, resulting in a base DPS of 4.5 times the AD multiplied by the AS. With a 50% chance to crit, the expected DPS is 1.5 times the base DPS, while equipping an Infinity Edge increases crit damage, resulting in a DPS of 1.75 times the base DPS. The final calculations yield a base DPS of 225, a regular DPS of 337.5, and a DPS of 393.75 with the Infinity Edge. This formula allows for dynamic calculations in a spreadsheet.
El Demente
Messages
2
Reaction score
0
I am calculating damage per second (DPS) for a character in a video game.

This character strikes twice every 4th attack. (Doublestrike)

This extra strike does 50% of your attack damage.

This extra strike, along with all other strikes, can crit, meaning meaning they do twice the damage. My character can buy an infinity edge making crits do 2.5x the damage.

If my chance to crit (CC) is at 50%, my attack damage (AD) is 100, and my attack speed (AS) is 2 attacks per second, then what is my DPS with and without the infinity edge? (Assuming that I have attacked at least 4 times to proc the doublestrike)

What is the formula? (I need the formula because I am creating a dynamic spreadsheet)
 
Mathematics news on Phys.org
El Demente said:
I am calculating damage per second (DPS) for a character in a video game.

This character strikes twice every 4th attack. (Doublestrike)

This extra strike does 50% of your attack damage.

This extra strike, along with all other strikes, can crit, meaning meaning they do twice the damage. My character can buy an infinity edge making crits do 2.5x the damage.

If my chance to crit (CC) is at 50%, my attack damage (AD) is 100, and my attack speed (AS) is 2 attacks per second, then what is my DPS with and without the infinity edge? (Assuming that I have attacked at least 4 times to proc the doublestrike)

What is the formula? (I need the formula because I am creating a dynamic spreadsheet)

Hey El Demente! Welcome to MHB! ;)

Suppose your character attacks 4 times then the regular damage is:
$$4 \times AD + 50\% \times AD = 4.5 AD$$
The damage per attack is then:
$$\frac{4.5}{4} \times AD \cdot \frac{\text{damage}}{\text{attack}}$$

Multiply by attack speed to find the base damage per second. Let's call that $DPS_{\text{base}}$:
$$DPS_{\text{base}}= \frac{4.5}{4} AD \cdot \frac{\text{damage}}{\text{attack}} \times AS \cdot \frac{\text{attack}}{\text{second}}
= \frac{4.5}{4} \times AD \times AS \cdot \frac{\text{damage}}{\text{second}}$$

Since there is 50% chance on a critical hit, the expected damage is:
$$DPS_{\text{regular}} = 50\% \times DPS_{\text{base}}+ 50\% \times (2 \times DPS_{\text{base}}) = 1.5 \times DPS_{\text{base}}$$
With an infinity edge this becomes:
$$DPS_{\text{infinity edge}} = 50\% \times DPS_{\text{base}}+ 50\% \times (2.5 \times DPS_{\text{base}}) = 1.75 \times DPS_{\text{base}}$$

Summing it up:
\begin{array}{|l|c|c|} \hline
\text{DPS} & \text{Formula} & \text{Current Value}\\
\hline
DPS_{\text{base}} & \frac{4.5}{4} \times AD \times AS & 225\\
DPS_{\text{regular}} & 1.5 \times DPS_{\text{base}} & 337.5\\
DPS_{\text{infinity edge}} & 1.75 \times DPS_{\text{base}} & 393.75\\
\hline
\end{array}

Have fun! :cool:
 
Oh my god that is the perfect answer. Thank you so much. I input it into my spreadsheet and everything by the way! Kudo's and cheers! I knew I could wrap my head around it if someone broke it down for me I just got frustrated trying it forever myself on this one cause I knew I didn't quite have it.
 
Last edited:
Seemingly by some mathematical coincidence, a hexagon of sides 2,2,7,7, 11, and 11 can be inscribed in a circle of radius 7. The other day I saw a math problem on line, which they said came from a Polish Olympiad, where you compute the length x of the 3rd side which is the same as the radius, so that the sides of length 2,x, and 11 are inscribed on the arc of a semi-circle. The law of cosines applied twice gives the answer for x of exactly 7, but the arithmetic is so complex that the...
Is it possible to arrange six pencils such that each one touches the other five? If so, how? This is an adaption of a Martin Gardner puzzle only I changed it from cigarettes to pencils and left out the clues because PF folks don’t need clues. From the book “My Best Mathematical and Logic Puzzles”. Dover, 1994.
Thread 'Imaginary Pythagoras'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...
Back
Top