Ability Cooldown: Difference between revisions

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
 
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:


In the in-game HUD, ability cooldowns only show decimal values below 2s.
In the in-game HUD, ability cooldowns only show decimal values below 2s.
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}}.


===Charged Abilities===
===Charged Abilities===
Line 17: Line 19:


'''Example:'''
'''Example:'''
With '''12%''' Cooldown Reduction from {{ItemIcon|Diviner's Kevlar}} and '''16%''' from {{ItemIcon|Superior Cooldown}}:
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: 0.12 and 0.16.
# 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 - 0.12) = '''0.88''' and (1 - 0.16) = '''0.84'''.
# Subtract from 1: (1 - {{#var: Item1Duration}}) = '''{{#expr: 1 - {{#var: Item1Duration}}}}''' and (1 - {{#var: Item2Duration}}) = '''{{#expr: 1 - {{#var: Item2Duration}}}}'''.
# Multiply the remainders: 0.88 × 0.84 = '''0.7392'''.
# 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 - 0.7392 = '''0.2608'''.
# Subtract from 1: 1 - {{#var: CombinedItemDuration}} = '''{{#expr: 1 - {{#var: CombinedItemDuration}} round 4}}'''.
# Total Cooldown Reduction is approximately '''26%''', not 28%.
# 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 ==
== Sources of Ability Cooldown Reduction ==
{{Item stat table|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|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===
===Map Spawns===