Warning: You are not logged in. Once you make an edit, a temporary account will be created for you.
Learn more.
Log in or
create an account to continue receiving notifications after this account expires, and to access other features.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
| Latest revision |
Your text |
| Line 9: |
Line 9: |
|
| |
|
| '''Example:''' | | '''Example:''' |
| With '''{{ItemData|{{#vardefineecho: Item1|Magic Carpet}}|BonusAbilityDurationPercent}}''' from {{ItemIcon|{{#var: Item1}}}} and '''{{ItemData|{{#vardefineecho: Item2|Diviner's Kevlar}}|BonusAbilityDurationPercent}}''' from {{ItemIcon|{{#var: Item2}}}}: | | With '''15%''' from {{ItemIcon|Magic Carpet}} and '''15%''' from {{ItemIcon|Diviner's Kevlar}}: |
| # Convert percentages to decimals: {{ItemData|{{#var: Item1}}|BonusAbilityDurationPercent}} to {{#vardefineecho: Item1Duration|{{#expr: {{#replace: {{ItemData|{{#var: Item1}}|BonusAbilityDurationPercent}}|%|}} / 100}}}} and {{ItemData|{{#var: Item2}}|BonusAbilityDurationPercent}} to {{#vardefineecho: Item2Duration|{{#expr: {{#replace: {{ItemData|{{#var: Item2}}|BonusAbilityDurationPercent}}|%|}} / 100}}}}. | | # Convert percentages to decimals: 0.15 each. |
| # Subtract from 1: (1 - {{#var: Item1Duration}}) = '''{{#expr: 1 - {{#var: Item1Duration}}}}''' and (1 - {{#var: Item2Duration}}) = '''{{#expr: 1 - {{#var: Item2Duration}}}}'''. | | # Subtract from 1: (1 - 0.15) = '''0.85''' and (1 - 0.15) = '''0.85'''. |
| # Multiply the differences: {{#expr: 1 - {{#var: Item1Duration}}}} × {{#expr: 1 - {{#var: Item2Duration}}}} = '''{{#vardefineecho: CombinedItemDuration|{{#expr: (1 - {{#var: Item1Duration}}) * (1 - {{#var: Item2Duration}}) round 4}}}}'''. | | # Multiply the differences: 0.85 × 0.85 = '''0.7225'''. |
| # Subtract from 1: 1 - {{#var: CombinedItemDuration}} = '''{{#expr: 1 - {{#var: CombinedItemDuration}} round 4}}'''. | | # Subtract from 1: 1 - 0.7225 = '''0.2775'''. |
| # Total Ability Duration bonus is '''{{#expr: (1 - {{#var: CombinedItemDuration}}) * 100 round 1}}%''', not {{#expr: ({{#var: Item1Duration}} + {{#var: Item2Duration}}) * 100 round 1}}%. | | # Total Ability Range bonus is approximately '''27.8%''', not 30%. |
|
| |
|
| == Sources of Ability Duration == | | == Sources of Ability Duration == |