Anonymous

Module:Items: Difference between revisions

From Melvor Idle
getWeaponStatsBox: Amend two handed value (true/false -> Yes/No)
(getWeaponStatsBox: Amend display of attack interval to have a resolution of seconds)
(getWeaponStatsBox: Amend two handed value (true/false -> Yes/No))
Line 484: Line 484:
table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. p._getItemStat(item, 'magicDamageBonus', true) .. '%')
table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. p._getItemStat(item, 'magicDamageBonus', true) .. '%')
table.insert(resultPart, '\r\n!style="text-align:right;"| Two Handed?')
table.insert(resultPart, '\r\n!style="text-align:right;"| Two Handed?')
table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. tostring(p._getItemStat(item, 'isTwoHanded')))
table.insert(resultPart, '\r\n|style="text-align:right;"| ' .. (p._getItemStat(item, 'isTwoHanded') and 'Yes' or 'No'))
table.insert(resultPart, '\r\n|}')
table.insert(resultPart, '\r\n|}')