Module:Skills/Gathering: Difference between revisions

Changed formatting for multiple bonuses on the same modifier for astrology
(Added initial pass at grouping together different Astrology bonuses on the same modifier)
(Changed formatting for multiple bonuses on the same modifier for astrology)
Line 735: Line 735:
local outArray = {}
local outArray = {}
for i, group in ipairs(allMods) do
for i, group in ipairs(allMods) do
table.insert(outArray, table.concat(group, ' & '))
local groupTxt = '<span style="1px solid black;padding:3px">'..table.concat(group, ' &<br/> ')..'</span>'
table.insert(outArray, groupTxt)
end
end
return table.concat(outArray, '<br/>')
return table.concat(outArray, '<br/>')