Module:Sandbox/Skills/Cartography: Difference between revisions

Added table of contents header
(Sortable tables, switched to mw.html)
(Added table of contents header)
Line 255: Line 255:
end
end
return p._getDiscoveryRewardsTable(item)
return '==POI Discovery Rewards==\n' .. p._getDiscoveryRewardsTable(item)
end
end


Line 263: Line 263:
if POI.discoveryRewards ~= nil and POI.discoveryRewards.items ~= nil then
if POI.discoveryRewards ~= nil and POI.discoveryRewards.items ~= nil then
local item = Items.getItemByID(POI.discoveryRewards.items[1].id)
local item = Items.getItemByID(POI.discoveryRewards.items[1].id)
local resultTable = string.gsub(p.getDiscoveryRewardsTable(item.name), "==POI Discovery Rewards==", "")
table.insert(testTable, p.getDiscoveryRewardsTable(item.name))
table.insert(testTable, resultTable)
end
end
end
end