4,951
edits
(Fix magnitude of SlayerCoinsPerMagicDamageSlayerTask modifier) |
Falterfire (talk | contribs) (Added option to get modifier text in a single line (for use with displaying curse descriptions inline)) |
||
Line 868: | Line 868: | ||
end | end | ||
function p.getModifiersText(modifiers, doColor) | function p.getModifiersText(modifiers, doColor, inline) | ||
if inline == nil then inline = false end | |||
if modifiers == nil or Shared.tableIsEmpty(modifiers) then | if modifiers == nil or Shared.tableIsEmpty(modifiers) then | ||
return '' | return '' | ||
Line 877: | Line 878: | ||
table.insert(modArray, p._getModifierText(bonus, value, doColor)) | table.insert(modArray, p._getModifierText(bonus, value, doColor)) | ||
end | end | ||
return table.concat(modArray, "<br/>") | if inline then | ||
return table.concat(modArray, " and ") | |||
else | |||
return table.concat(modArray, "<br/>") | |||
end | |||
end | end | ||