Fire Rate: Difference between revisions

m This is my first ever Wiki Change! Over the time, values for "Fire Rate" modifiers for items have changed. Since these values are Hard-Coded, i adjusted the calculations with the new values. This is also a bad approach, since values are still Hard-Coded. In the future they need to be dynamically passed into the formula. Once i get more used to how the Wiki works, il get to that :)
Line 19: Line 19:
==== Combined Bonuses and Slows ====  
==== Combined Bonuses and Slows ====  
For an example with multiple sources:
For an example with multiple sources:
* '''+25%''' Fire Rate from {{ItemIcon|Ricochet}}
* '''+18%''' Fire Rate from {{ItemIcon|Ricochet}}
* '''+20%''' Fire Rate from {{ItemIcon|Swift Striker}}
* '''+20%''' Fire Rate from {{ItemIcon|Swift Striker}}
* '''-25%''' Fire Rate Slow from {{HeroIcon|Sinclair}}'s {{AbilityIcon|Vexing Bolt}}
* '''-25%''' Fire Rate Slow from {{HeroIcon|Sinclair}}'s {{AbilityIcon|Vexing Bolt}}
* '''-35%''' Fire Rate Slow from an enemy's {{ItemIcon|Suppressor}}
* '''-28%''' Fire Rate Slow from an enemy's {{ItemIcon|Suppressor}}


First, calculate the groups separately:
First, calculate the groups separately:
* '''Bonuses:''' <math>0.25 + 0.20 = 0.45</math>
* '''Bonuses:''' <math>0.18 + 0.20 = 0.38</math>
* '''Slows:''' <math>(1 - 0.25) \times (1 - 0.35) = 0.75 \times 0.65 = 0.4875</math>
* '''Slows:''' <math>(1 - 0.25) \times (1 - 0.28) = 0.75 \times 0.72 = 0.54</math>


Then combine them in the final formula:
Then combine them in the final formula:
:<math>\text{Final} = 0.45 - (1 - 0.4875)</math>
:<math>\text{Final} = 0.38 - (1 - 0.54)</math>
:<math>\text{Final} = 0.45 - 0.5125 = -0.0625</math>
:<math>\text{Final} = 0.45 - 0.46 = -0.01</math>


This results in a '''-6.25%''' final change. The in-game UI typically rounds this value to the nearest whole number, displaying '''-6%'''.
This results in a '''-1.00%''' final change. The in-game UI typically rounds this value to the nearest whole number, displaying '''-1%'''.


==== Maximum Slow Reduction ====  
==== Maximum Slow Reduction ====  
Line 38: Line 38:
* No positive Fire Rate bonuses (0)
* No positive Fire Rate bonuses (0)
* '''-25%''' Fire Rate Slow from {{HeroIcon|Sinclair}}'s {{AbilityIcon|Vexing Bolt}}
* '''-25%''' Fire Rate Slow from {{HeroIcon|Sinclair}}'s {{AbilityIcon|Vexing Bolt}}
* '''-35%''' Fire Rate Slow from an enemy's {{ItemIcon|Suppressor}}
* '''-28%''' Fire Rate Slow from an enemy's {{ItemIcon|Suppressor}}
* '''-32%''' Fire Rate Slow from an enemy's {{ItemIcon|Rusted Barrel}}


The calculation is:
The calculation is:
:<math>0 - (1 - (0.75 \times 0.65))</math>
:<math>0 - (1 - (0.75 \times 0.72 \times 0.68))</math>
:<math>0 - (1 - 0.4875) = -0.5125</math>  
:<math>0 - (1 - 0.3672) = -0.6328</math>


This results in a calculated slow of '''-51.25%'''. Due to the cap, this value is raised to the maximum reduction of '''-50%'''.
This results in a calculated slow of '''-63.28%'''. Due to the cap, this value is raised to the maximum reduction of '''-50%'''.


== Base Fire Rate ==
== Base Fire Rate ==