Ability Cooldown: Difference between revisions

Overview: Broad rewrite of Overview and Stacking sections
Calculation: change calculation to dynamically pull frmo itemdata like the pages for range / duration. also changed the items around because Diviner's Kevlar no longer gives cooldown reduction
 
(20 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Stub}}
'''Ability Cooldown''' is the time it takes for an [[Ability]] to be usable again.


==Overview==
==Overview==
The '''Ability Cooldown''' of an ability is a period of time after being used that the ability cannot be used again. Cooldowns range from a few seconds, as in [[Lady Geist|Lady Geist's]] Malice, to a few minutes, as [[Dynamo|Dynamo's]] Singularity. Ability cooldowns can be reduced by acquiring the Cooldown Reduction stat, which reduces the cooldown by a percentage of base [[ability]] time.
Cooldowns range from a few seconds, as in {{HeroIcon|Lady Geist}}'s {{AbilityIcon|Malice}}, to a few minutes, as in {{HeroIcon|Dynamo}}'s {{AbilityIcon|Singularity}}. Ability cooldowns can be reduced by acquiring the Cooldown Reduction stat, which reduces the cooldown by a percentage of base [[ability]] time.


Some abilities can acquire multiple charges. In those cases, the ability cooldown represents the time for a charge to become available again after being used.
In the in-game HUD, ability cooldowns only show decimal values below 2s.


===Stacking===
Unlike [[Ability Range]] and [[Ability Duration]], ability cooldown does not affect items. Items are only affected by a separate stat called [[Ability Cooldown#Item Cooldown|Item Cooldown Reduction]] which is granted by {{ItemIcon|Transcendent Cooldown}}.
Different sources of cooldown reduction stack multiplicatively. With <math>n</math> sources of cooldown reduction, total cooldown reduction is given by:


<math>CR_{Total} = 1 - \prod_{i=1}^n (1 - CR_i)</math>
===Charged Abilities===
Some abilities can acquire multiple charges. In those cases, the ability cooldown represents the time for a charge to become available again after being used. This should not be confused with the time between charges, which describes the delay after using a charge that a different charge can be used.


For example, with 12% Cooldown Reduction from [[Diviner's Kevlar]] and 16% Cooldown Reduction from [[Improved Cooldown]]:
== Calculation ==


<math>CR_{Total} = 1 - (1 - 0.12) \times (1 - 0.16) \approx 26%</math>
=== Calculating Cooldown Reduction ===
Despite being presented in-game as +X% Cooldown Reduction, multiple sources stack '''multiplicatively''', not additively:


== Sources of Cooldown Reduction ==
<math>\text{Total Cooldown Reduction} = 1 - (1 - CR_1) \times (1 - CR_2) \dots</math>
[[Gold Urn|Gold Urns]] have a chance to drop a permanent 0.75% Cooldown Reduction buff.{{#invoke:ItemsByStat|tablefy|CooldownReduction|+X% Cooldown Reduction|%}}In addition to the generic cooldown reduction items listed above, [[Superior Cooldown]] provides +32% Imbued Ability Cooldown Reduction for a single chosen ability and +24% Non-Imbued Ability Cooldown Reduction for those abilities not chosen.{{Stats}}
 
'''Example:'''
With '''{{ItemData|{{#vardefineecho: Item1|Superior Cooldown}}|CooldownReduction}}''' from {{ItemIcon|{{#var: Item1}}}} and '''{{ItemData|{{#vardefineecho: Item2|Spellslinger}}|CooldownReduction}}''' from {{ItemIcon|{{#var: Item2}}}}:
# Convert percentages to decimals: {{ItemData|{{#var: Item1}}|CooldownReduction}} to {{#vardefineecho: Item1Duration|{{#expr: {{#replace: {{ItemData|{{#var: Item1}}|CooldownReduction}}|%|}} / 100}}}} and {{ItemData|{{#var: Item2}}|CooldownReduction}} to {{#vardefineecho: Item2Duration|{{#expr: {{#replace: {{ItemData|{{#var: Item2}}|CooldownReduction}}|%|}} / 100}}}}.
# Subtract from 1: (1 - {{#var: Item1Duration}}) = '''{{#expr: 1 - {{#var: Item1Duration}}}}''' and (1 - {{#var: Item2Duration}}) = '''{{#expr: 1 - {{#var: Item2Duration}}}}'''.
# Multiply the remainders: {{#expr: 1 - {{#var: Item1Duration}}}} × {{#expr: 1 - {{#var: Item2Duration}}}} = '''{{#vardefineecho: CombinedItemDuration|{{#expr: (1 - {{#var: Item1Duration}}) * (1 - {{#var: Item2Duration}}) round 4}}}}'''.
# Subtract from 1: 1 - {{#var: CombinedItemDuration}} = '''{{#expr: 1 - {{#var: CombinedItemDuration}} round 4}}'''.
# Total Cooldown Reduction is '''{{#expr: (1 - {{#var: CombinedItemDuration}}) * 100 round 1}}%''', not {{#expr: ({{#var: Item1Duration}} + {{#var: Item2Duration}}) * 100 round 1}}%.
 
== Sources of Ability Cooldown Reduction ==
{{Item stat table|Ability Cooldown Reduction}}
* {{ItemIcon|Witchmail}} has a passive that reduces the cooldown of a random ability as the player takes [[Spirit Damage]].
* {{ItemIcon|Golden Goose Egg}} grants random [[Permanent Buffs]], including Cooldown Reduction.
 
===Map Spawns===
* [[Golden Statue|Golden Statues]] have a chance to drop a permanent Cooldown Reduction buff.
* [[Powerup]] runes can provide a temporary Casting buff that provides +'''12'''% to +'''20'''% Cooldown Reduction for 160 seconds (scaling with game time from 5 to 40 minutes).
 
== Item Cooldown ==
Item Cooldown is the time it takes for an [[Item]] to be usable again. This includes both [[Active]] and Passive items.
 
[[Charge-Up]] items such as {{ItemIcon|Tankbuster}} and {{ItemIcon|Mercurial Magnum}} are not affected by Item Cooldown Reduction.
 
=== Sources of Item Cooldown Reduction ===
{{Item stat table|Item Cooldown Reduction}}
 
{{Stats}}