Template:AutoWeaponStats: Difference between revisions

From Melvor Idle
(Removed icon from next to Attack Speed because it felt wrong.)
(Fixed strength bonus not pulling properly)
Line 19: Line 19:
|-
|-
! style ="text-align: right;"| [[File:Strength (skill).svg|25px|middle|link=Strength]] Strength Bonus
! style ="text-align: right;"| [[File:Strength (skill).svg|25px|middle|link=Strength]] Strength Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|ForceZero=true|strengthBonus}}
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|ForceZero=true|meleeStrengthBonus}}
! style ="text-align: right;"| [[File:Ranged (skill).svg|25px|middle|link=Ranged]] Defence Bonus
! style ="text-align: right;"| [[File:Ranged (skill).svg|25px|middle|link=Ranged]] Defence Bonus
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|ForceZero=true|rangedDefenceBonus}}
| style ="text-align: right;"| {{#invoke:Items|getItemStat|{{#var:item}}|ForceZero=true|rangedDefenceBonus}}

Revision as of 13:59, 7 September 2021

Automatic version of Template:WeaponStats that pulls data via Lua. {{AutoWeaponStats|Sunset Rapier}} becomes

Weapon Stats
Offensive Stats Defensive Stats
Attack Speed 2200 Defence (skill).svg Defence Bonus 0
Attack Type
Error creating thumbnail: File missing
Melee
Defence (skill).svg Damage Reduction 0%
Strength (skill).svg Strength Bonus 63 Ranged (skill).svg Defence Bonus 0
Combat.svg Stab Bonus 72 Magic (skill).svg Defence Bonus 0
Combat.svg Slash Bonus 55 Other
Combat.svg Block Bonus 65 Slayer (skill).svg Bonus Slayer XP 0%
Ranged (skill).svg Attack Bonus 0 Attack (skill).svg Level Required 70
Ranged (skill).svg Strength Bonus 0 Ranged (skill).svg Level Required 0
Magic (skill).svg Attack Bonus 0 Magic (skill).svg Level Required 0
Magic (skill).svg % Damage Bonus 0% Two Handed? false