Ability Duration: Difference between revisionsGive feedback
Gammaton32 (talk | contribs) →Sources of Ability Duration: removed note on superior duration |
→Calculating Ability Duration: change #replace's to use DataProp instead |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
'''Ability Duration''' determines how long the effect of abilities and items last. | '''Ability Duration''' determines how long the effect of abilities and items last. | ||
== Calculation == | |||
=== Calculating Ability Duration === | |||
Multiple sources of Ability Duration stack '''multiplicatively''', not additively: | |||
<math>\text{Total Ability Multiple sources of Ability Duration stack '''multiplicatively''', not additively:} = 1 - (1 - R_1) \times (1 - R_2) \dots</math> | |||
'''Example:''' | |||
With '''{{DataProp|{{#vardefineecho: Item1|Magic Carpet}}|BonusAbilityDurationPercent}}%''' from {{ItemIcon|{{#var: Item1}}}} and '''{{DataProp|{{#vardefineecho: Item2|Diviner's Kevlar}}|BonusAbilityDurationPercent}}%''' from {{ItemIcon|{{#var: Item2}}}}: | |||
# Convert percentages to decimals: {{DataProp|{{#var: Item1}}|BonusAbilityDurationPercent}}% to {{#vardefineecho: Item1Duration|{{#expr: {{DataProp|{{#var: Item1}}|BonusAbilityDurationPercent}} / 100}}}} and {{DataProp|{{#var: Item2}}|BonusAbilityDurationPercent}}% to {{#vardefineecho: Item2Duration|{{#expr: {{DataProp|{{#var: Item2}}|BonusAbilityDurationPercent}} / 100}}}}. | |||
# Subtract from 1: (1 - {{#var: Item1Duration}}) = '''{{#expr: 1 - {{#var: Item1Duration}}}}''' and (1 - {{#var: Item2Duration}}) = '''{{#expr: 1 - {{#var: Item2Duration}}}}'''. | |||
# Multiply the differences: {{#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 Ability Duration bonus is '''{{#expr: (1 - {{#var: CombinedItemDuration}}) * 100 round 1}}%''', not {{#expr: ({{#var: Item1Duration}} + {{#var: Item2Duration}}) * 100 round 1}}%. | |||
== Sources of Ability Duration == | == Sources of Ability Duration == | ||