Anonymous

Module:Skills/Artisan: Difference between revisions

From Melvor Idle
Added exception to fix case where Bird Nest Potion has the wrong name in code.
(Added potion name to a header row for the potion table)
(Added exception to fix case where Bird Nest Potion has the wrong name in code.)
Line 167: Line 167:
local resultPart = {}
local resultPart = {}
table.insert(resultPart, '{| class="wikitable"')
table.insert(resultPart, '{| class="wikitable"')
table.insert(resultPart, '\r\n!colspan=4|[['..potionName..']]')
--The Bird Nest Potion specifically has the wrong name in code
if potionName == 'Bird Nests Potion' then
table.insert(resultPart, '\r\n!colspan=4|[[Bird Nest Potion]]')
else
table.insert(resultPart, '\r\n!colspan=4|[['..potionName..']]')
end
table.insert(resultPart, '\r\n|-\r\n!Potion!!Tier!!Charges!!Effect')
table.insert(resultPart, '\r\n|-\r\n!Potion!!Tier!!Charges!!Effect')