From Melvor Idle
Revision as of 00:46, 12 January 2022 by Falterfire (talk | contribs) (Added the ability for autoarmourstats to collapse to a single line if it's all zeros)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

{{AutoArmourStats|Ragnar God Gloves}} gives

Armour Stats
Offensive Stats Defensive Stats
Strength Strength Bonus 16 Defence Defence Bonus 11
Combat Stab Bonus 12 Defence Damage Reduction 7%
Combat Slash Bonus 12 Ranged Defence Bonus 0
Combat Block Bonus 12 Magic Defence Bonus 0
Ranged Attack Bonus -5 Equip Requirements
Ranged Strength Bonus 0 Defence Level Required 85
Magic Attack Bonus -8
Magic % Damage Bonus 0%

When called for items without any combat stats, it returns a simple statement to that effect. For example, {{AutoArmourStats|Gold Topaz Ring}} gives
Gold Topaz Ring does not provide any stat bonuses in combat.