Module:Skills/Gathering: Difference between revisions

_buildAstrologyConstellationTable: Order rows by constellation level
(Added ID to astrology table)
(_buildAstrologyConstellationTable: Order rows by constellation level)
Line 665: Line 665:
table.insert(resultPart, string.rep('\n! ' .. Icons.Icon({'Mastery', notext=true}) .. 'Level\n! Modifiers', 2))
table.insert(resultPart, string.rep('\n! ' .. Icons.Icon({'Mastery', notext=true}) .. 'Level\n! Modifiers', 2))


for i, cons in ipairs(SkillData.Astrology.recipes) do
local recipes = Shared.shallowClone(SkillData.Astrology.recipes)
table.sort(recipes, function(a, b) return a.level < b.level end)
for i, cons in ipairs(recipes) do
-- Generate the list of modifiers first for the purpose of determining the
-- Generate the list of modifiers first for the purpose of determining the
-- the number of rows required to display all stars
-- the number of rows required to display all stars