Fire Rate: Difference between revisionsGive feedback
→Fire Rate: Updated Burst fire and heroic aura numbers. |
Added a math section to explain how fire rate buffs and slows are calculated. |
||
| Line 2: | Line 2: | ||
The inverse of this is called ''gun cycle time'', which instead measures '''seconds per bullet'''. | The inverse of this is called ''gun cycle time'', which instead measures '''seconds per bullet'''. | ||
== Math == | |||
The final Fire Rate change is calculated with separate rules for bonuses and slows: positive bonuses (buffs) are additive, while negative bonuses (slows) are multiplicative. | |||
It is important to note that the total change to Fire Rate cannot be reduced below '''-50%'''. Any calculated value lower than this will be capped at -50%. | |||
The overall formula is: <math>\text{Fire Rate Modifier} = (\text{All Bonuses Added}) - \left(1 - \prod (1 - \text{Slows})\right)</math> | |||
Where: | |||
* '''All Bonuses Added''' = Bonus1 + Bonus2 + ... (e.g., 0.25 + 0.20 = 0.45) | |||
* <math>\prod (1 - \text{Slows})</math> is the product of the remainders for each individual '''Fire Rate Slow''' (e.g., (1 - 0.25) * (1 - 0.35)) | |||
=== Examples === | |||
==== Combined Bonuses and Slows ==== | |||
For an example with multiple sources: | |||
* '''+25%''' Fire Rate from {{ItemIcon|Ricochet}} | |||
* '''+20%''' Fire Rate from {{ItemIcon|Swift Striker}} | |||
* '''-25%''' Fire Rate Slow from {{HeroIcon|Sinclair}}'s {{AbilityIcon|Vexing Bolt}} | |||
* '''-35%''' Fire Rate Slow from an enemy's {{ItemIcon|Suppressor}} | |||
The calculation combines the additive bonuses with the multiplicative slows: | |||
<math>(0.25 + 0.20) - (1 - (1 - 0.25) \times (1 - 0.35))</math> <br> | |||
<math>= 0.45 - (1 - 0.4875)</math> <br> | |||
<math>= 0.45 - 0.5125 = -0.0625</math> | |||
This results in a '''-6.25%''' final change. The in-game UI typically rounds this value to the nearest whole number, displaying '''-6%'''. | |||
==== Maximum Slow Reduction ==== | |||
For an example with only slows applied: | |||
* No positive Fire Rate bonuses | |||
* '''-25%''' Fire Rate Slow from {{HeroIcon|Sinclair}}'s {{AbilityIcon|Vexing Bolt}} | |||
* '''-35%''' Fire Rate Slow from an enemy's {{ItemIcon|Suppressor}} | |||
The calculation is: <br> | |||
<math>0 - (1 - (1 - 0.25) \times (1 - 0.35)) = -0.5125</math> | |||
This results in a calculated slow of '''-51.25%'''. Due to the cap, this value is raised to the maximum reduction of '''-50%'''. | |||
== Base Fire Rate == | == Base Fire Rate == | ||
Values referenced from [[Hero Comparison]]. | Values referenced from [[Hero Comparison]]. | ||
{{#invoke:HeroDataArrays|heroRoundsPerSecondTable}} | {{#invoke:HeroDataArrays|heroRoundsPerSecondTable}} | ||
== Sources == | == Sources == | ||
=== Fire Rate === | === Fire Rate === | ||
{{Item stat table|Fire Rate}} | {{Item stat table|Fire Rate}} | ||
* {{ItemIcon|Burst Fire}} additionally increases Fire Rate by +{{#invoke:ItemData|get_prop|Burst Fire|ActivatedFireRate}}% for {{#invoke:ItemData|get_prop|Burst Fire|AbilityDuration}} seconds after hitting an enemy hero. | * {{ItemIcon|Burst Fire}} additionally increases Fire Rate by +{{#invoke:ItemData|get_prop|Burst Fire|ActivatedFireRate}}% for {{#invoke:ItemData|get_prop|Burst Fire|AbilityDuration}} seconds after hitting an enemy hero. | ||
* {{ItemIcon|Heroic Aura}} increases Fire Rate by +{{#expr:2*({{#invoke:ItemData|get_prop|Heroic Aura|BonusFireRate}})}}% to nearby player minions in a {{#invoke:ItemData|get_prop|Heroic Aura|ActiveRadius}} radius. | * {{ItemIcon|Heroic Aura}} increases Fire Rate by +{{#expr:2*({{#invoke:ItemData|get_prop|Heroic Aura|BonusFireRate}})}}% to nearby player minions in a {{#invoke:ItemData|get_prop|Heroic Aura|ActiveRadius}} radius. | ||
=== Fire Rate Slow === | === Fire Rate Slow === | ||
{{Item stat table|Fire Rate Slow}} | {{Item stat table|Fire Rate Slow}} | ||