Module:Constants: Difference between revisions

Fixed issue with recursion with p._getModifierText
(Moved p.getModifierText to p._getModifierText and added a version designed to be directly called from wiki pages)
(Fixed issue with recursion with p._getModifierText)
Line 217: Line 217:
       local resultArray = {}
       local resultArray = {}
       for i, subVal in Shared.skpairs(value) do
       for i, subVal in Shared.skpairs(value) do
         table.insert(resultArray, p.getModifierText(modifier, subVal, doColor))
         table.insert(resultArray, p._getModifierText(modifier, subVal, doColor))
       end
       end
       return table.concat(resultArray, '<br/>')
       return table.concat(resultArray, '<br/>')