Module:Skills/Artisan: Difference between revisions

herbloreLevel -> level to resolve a bunch of script errors
(swapped to icons in a couple places for consistency)
(herbloreLevel -> level to resolve a bunch of script errors)
Line 94: Line 94:
   result = result..'!!XP!!Ingredients!!colspan="2"|Tier!!Value!!Charges!!Effect'
   result = result..'!!XP!!Ingredients!!colspan="2"|Tier!!Value!!Charges!!Effect'


   table.sort(potionArray, function(a, b) return a.herbloreLevel < b.herbloreLevel end)
   table.sort(potionArray, function(a, b) return a.level < b.level end)


   for i, potion in Shared.skpairs(potionArray) do
   for i, potion in Shared.skpairs(potionArray) do
Line 107: Line 107:
       result = result..'\r\n|rowspan="4"|[['..potion.name..']]'
       result = result..'\r\n|rowspan="4"|[['..potion.name..']]'
     end
     end
     result = result..'||rowspan="4" style="text-align:right"|'..potion.herbloreLevel
     result = result..'||rowspan="4" style="text-align:right"|'..potion.level
     result = result..'||rowspan="4" style="text-align:right"|'..potion.herbloreXP
     result = result..'||rowspan="4" style="text-align:right"|'..potion.herbloreXP