Template:AutoWeaponStats: Difference between revisions

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

Revision as of 18:17, 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