4,951
edits
Falterfire (talk | contribs) (added a note that an item is passive in the description) |
Falterfire (talk | contribs) 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, ' | table.insert(resultPart, '<span style="color:green">Passive:</span><br/>') | ||
end | end | ||
table.insert(resultPart, | table.insert(resultPart, Constants.getModifiersText(item.modifiers, true, false, 10)) | ||
end | end | ||
return table.concat(resultPart) | return table.concat(resultPart) |