Anonymous

Module:Sandbox/Skills/Cartography: Difference between revisions

From Melvor Idle
no edit summary
(Fixed icon, sorted Table)
No edit summary
Line 264: Line 264:
for i, POI in pairs(SkillData.Cartography.worldMaps[1].pointsOfInterest) do
for i, POI in pairs(SkillData.Cartography.worldMaps[1].pointsOfInterest) do
if POI.discoveryRewards ~= nil and POI.discoveryRewards.items ~= nil then
if POI.discoveryRewards ~= nil and POI.discoveryRewards.items ~= nil then
for i, reward in pairs(POI.discoveryRewards.items) do
local item = Items.getItemByID(POI.discoveryRewards.items[1].id)
local item = Items.getItemByID(reward.id)
local resultTable = string.gsub(p.getDiscoveryRewardsTable(item.name), "==POI Discovery Rewards==", "")
local resultTable = string.gsub(p.getDiscoveryRewardsTable(item.name), "==POI Discovery Rewards==", "")
table.insert(testTable, resultTable)
table.insert(testTable, resultTable)
end
end
end
end
end