Module:Constants: Difference between revisions

Fixed a thing
(Added p.getModifiersText which should replace duplicated code in a few places.)
(Fixed a thing)
Line 294: Line 294:


function p.getModifiersText(modifiers, doColor)
function p.getModifiersText(modifiers, doColor)
   if modifiers == nil or #modifiers == 0 then
   if modifiers == nil or Shared.tableCount(modifiers) == 0 then
     return ''
     return ''
   end
   end