MHB How to factor in critical chance to calculate damage per second?

  • Thread starter Thread starter Tomecide
  • Start date Start date
  • Tags Tags
    Damage Per
AI Thread Summary
To factor in critical chance for calculating damage per second in the video game, the expected damage formula incorporates both regular and critical hits. The expected damage is calculated as the sum of the base damage multiplied by the probability of a regular hit and double the base damage multiplied by the probability of a critical hit. This results in the formula: Damage Per Second equals Attack Animations multiplied by (1 plus Critical Chance) times Base Damage, divided by the total time to perform all attack animations. This adjustment accurately reflects the impact of critical hits on overall damage output. Implementing this formula will provide a more comprehensive understanding of sword effectiveness in the game.
Tomecide
Messages
1
Reaction score
0
Ok so essentially in this video game I have there are certain stats on swords. The stats are the amount of Attack animations, amount of time to compleate all of the attack animations, sword dammage and critical chance. All of the animations deal the same amount of dammage and the time to compleate all of the animations always stays the same (Dammage is done when you attack and attacking causes an animation to happen). Critical Chance has a fixed percentage of chance to occour and if a critical hit is landed, the attack will deal double damage. Sword dammage is fixed and I've figured out a formula to find the amount of dammage a sword can deal a second: Attack Animations * Base dammage / Time to preform all of the attack animations. I'm confident that this formula is correct, because I have tested it. Anyways my question is how can I factor in critical chance to my equation to reresent the stat properly. Thanks!
 
Mathematics news on Phys.org
Tomecide said:
Ok so essentially in this video game I have there are certain stats on swords. The stats are the amount of Attack animations, amount of time to compleate all of the attack animations, sword dammage and critical chance. All of the animations deal the same amount of dammage and the time to compleate all of the animations always stays the same (Dammage is done when you attack and attacking causes an animation to happen). Critical Chance has a fixed percentage of chance to occour and if a critical hit is landed, the attack will deal double damage. Sword dammage is fixed and I've figured out a formula to find the amount of dammage a sword can deal a second: Attack Animations * Base dammage / Time to preform all of the attack animations. I'm confident that this formula is correct, because I have tested it. Anyways my question is how can I factor in critical chance to my equation to reresent the stat properly. Thanks!

Hi Tomecide! Welcome to MHB! (Smile)

When an animation deals damage, the damage dealt is:
\begin{cases}\text{Base Damage} &\text{with probability }1 - \text{Critical Chance} \\
\text{Base Damage} \times 2 &\text{with probability }\text{Critical Chance}
\end{cases}
The expected amount of damage is:
\begin{aligned}\text{Expected Damage} &= (1 - \text{Critical Chance}) \times \text{Base Damage} + \text{Critical Chance}\times \text{Base Damage} \times 2 \\
&= (1 + \text{Critical Chance})\times \text{Base Damage}
\end{aligned}
So the:
$$\text{Damage Per Second} = \text{Attack Animations} \times (1 + \text{Critical Chance})\times \text{Base Damage} \ /\ \text{Time}$$
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Back
Top