Anonymous

Module:Items: Difference between revisions

From Melvor Idle
m
slight tweak to formatting of passive header
(added a note that an item is passive in the description)
m (slight tweak to formatting of passive header)
Line 271: Line 271:
--For items with modifiers, show what those are
--For items with modifiers, show what those are
if item.modifiers ~= nil and not Shared.tableIsEmpty(item.modifiers) then
if item.modifiers ~= nil and not Shared.tableIsEmpty(item.modifiers) then
table.insert(resultPart, "\r\n|-\r\n|'''Modifiers:'''")
table.insert(resultPart, "\r\n|-\r\n|'''Modifiers:'''\r\n")
if isPassive then
if isPassive then
table.insert(resultPart, '\r\n<span style="color:green">Passive:</span>')
table.insert(resultPart, '<span style="color:green">Passive:</span><br/>')
end
end
table.insert(resultPart, "\r\n"..Constants.getModifiersText(item.modifiers, true, false, 10))
table.insert(resultPart, Constants.getModifiersText(item.modifiers, true, false, 10))
end
end
return table.concat(resultPart)
return table.concat(resultPart)