444
edits
Inconvenient (talk | contribs) mNo edit summary |
Inconvenient (talk | contribs) No edit summary |
||
Line 20: | Line 20: | ||
-- my kingdom for a switch statement | -- my kingdom for a switch statement | ||
for i, item in Shared.skpairs(ItemData.Items) do | for i, item in Shared.skpairs(ItemData.Items) do | ||
if i == 2 or i == 3 or i == 5 or i == | if i == 2 or i == 3 or i == 5 or i == 7 or i == 8 then | ||
table.insert(treeProduce, Icons.Icon({item.name, type='item'})) | table.insert(treeProduce, Icons.Icon({item.name, type='item'})) | ||
elseif i >= 144 and i < 152 then | elseif i >= 144 and i < 152 then | ||
Line 39: | Line 39: | ||
local result = '{| class="wikitable" style="margin:auto; clear:both; width: 100%"' | local result = '{| class="wikitable" style="margin:auto; clear:both; width: 100%"' | ||
result = result..'\r\n!colspan="3"|'..Icons.Icon({'Farming', type='skill'}) | result = result..'\r\n!colspan="3"|'..Icons.Icon({'Farming', type='skill'}) | ||
result = result..'\r\n|-\r\n!scope="row" rowspan=" | result = result..'\r\n|-\r\n!scope="row" rowspan="4"|Seeds' | ||
result = result..'\r\n|-\r\n!scope="row"|Allotment' | result = result..'\r\n|-\r\n!scope="row"|Allotment' | ||
result = result..'\r\n|style="text-align:center;|'..table.concat(allotmentSeeds, ' • ') | result = result..'\r\n|style="text-align:center;|'..table.concat(allotmentSeeds, ' • ') | ||
Line 46: | Line 46: | ||
result = result..'\r\n|-\r\n!scope="row"|Tree' | result = result..'\r\n|-\r\n!scope="row"|Tree' | ||
result = result..'\r\n|style="text-align:center;|'..table.concat(treeSeeds, ' • ') | result = result..'\r\n|style="text-align:center;|'..table.concat(treeSeeds, ' • ') | ||
result = result..'\r\n|-\r\n!scope="row" rowspan=" | result = result..'\r\n|-\r\n!scope="row" rowspan="4"|Produce' | ||
result = result..'\r\n|-\r\n!scope="row"|Allotment' | result = result..'\r\n|-\r\n!scope="row"|Allotment' | ||
result = result..'\r\n|style="text-align:center;|'..table.concat(allotmentProduce, ' • ') | result = result..'\r\n|style="text-align:center;|'..table.concat(allotmentProduce, ' • ') |
edits