More actions
Spectre256 (talk | contribs) m fix grammar |
→Damage: dps formulat that takes random damage variance into account. |
||
| Line 134: | Line 134: | ||
But the surprising part of the damage mechanic is that the damage calculations are linked to hit chance calculations. At the heart of each turret's damage output is a single randomly generated value between 0 and 1 that is several digits long. This random number is used to determine '''both''' if the turret hits and how much damage it does. Unfortunately, the misses are those random numbers that would have caused the most damage. If the random number is less than 0.01 (1% chance) a special case occurs, a perfect hit, these will always deal exactly 300% of the base damage. A funny result of this is that when the hit chance is 1% or less, only misses and perfect hits can occur. | But the surprising part of the damage mechanic is that the damage calculations are linked to hit chance calculations. At the heart of each turret's damage output is a single randomly generated value between 0 and 1 that is several digits long. This random number is used to determine '''both''' if the turret hits and how much damage it does. Unfortunately, the misses are those random numbers that would have caused the most damage. If the random number is less than 0.01 (1% chance) a special case occurs, a perfect hit, these will always deal exactly 300% of the base damage. A funny result of this is that when the hit chance is 1% or less, only misses and perfect hits can occur. | ||
The damage modifier for a normal hit is calculated with the following formula. In 100% hit chance situation this leads to even distribution from 50% to | The damage modifier for a normal hit is calculated with the following formula. In 100% hit chance situation this leads to even distribution from 50% to 149% with extra spike at 300% damage. | ||
Random Damage modifier = Random number[0.01,1] + 0.49 | Random Damage modifier = Random number[0.01,1] + 0.49 | ||
The normalized DPS can then be calculated as | |||
Normalized_DPS = 0.5 * min( hit_chance^2 + 0.98 * hit_chance - 0.0501, hit_chance * 6 ) | |||
The combat log will show the quality of a hit as follows | The combat log will show the quality of a hit as follows | ||