Template:AutoArmourStats: Difference between revisions

From Melvor Idle
(Fixed strength bonus not pulling properly)
(Fixing melee defence bonus)
Line 12: Line 12:
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|meleeStrengthBonus|ForceZero=true}}
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|meleeStrengthBonus|ForceZero=true}}
! style ="text-align: right;"| {{Skill|Defence|notext=true}} Defence Bonus
! style ="text-align: right;"| {{Skill|Defence|notext=true}} Defence Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|defenceBonus|ForceZero=true}}
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|meleeDefenceBonus|ForceZero=true}}
|-
|-
! style ="text-align: right;"| [[File:Combat.svg|25px|middle|link=Attack]] Stab Bonus
! style ="text-align: right;"| [[File:Combat.svg|25px|middle|link=Attack]] Stab Bonus

Revision as of 18:17, 7 September 2021

Automatic version of Template:ArmourStats that pulls data via Lua.

{{AutoArmourStats|Ragnar God Gloves}} gives

Armour Stats
Offensive Stats Defensive Stats
Error creating thumbnail: File missing
Strength Bonus
16
Error creating thumbnail: File missing
Defence Bonus
11
Combat.svg Stab Bonus 12 Defence (skill).svg Damage Reduction 7%
Combat.svg Slash Bonus 12 Ranged (skill).svg Defence Bonus 0
Combat.svg Block Bonus 12 Magic (skill).svg Defence Bonus 0
Ranged (skill).svg Attack Bonus -5 Other
Ranged (skill).svg Strength Bonus 0 Slayer (skill).svg Bonus Slayer XP 0%
Magic (skill).svg Attack Bonus -8 Defence (skill).svg Level Required 85
Magic (skill).svg % Damage Bonus 0% Ranged (skill).svg Level Required 0
Magic (skill).svg Level Required 0