Module:Skills/Cartography: Difference between revisions

Added 'Active' and "Port' types to the table
(Added discovery rewards & unlock requirements)
(Added 'Active' and "Port' types to the table)
Line 93: Line 93:
table.insert(tableStr, Icons.Icon({POI.name, type='poi', notext='true', nolink='true'}))
table.insert(tableStr, Icons.Icon({POI.name, type='poi', notext='true', nolink='true'}))
table.insert(tableStr, '||'..POI.name)
table.insert(tableStr, '||'..POI.name)
table.insert(tableStr, '||'..POI.type)
local POIType = POI.type
if POIType == 'DigSite' then
POIType = 'Dig Site'
else
if POI.activeModifiers ~= nil then
POIType = 'Active'
elseif POI.fastTravel ~= nil then
POIType = 'Port'
end
end
table.insert(tableStr, '||'..POIType)
table.insert(tableStr, '||'..X)
table.insert(tableStr, '||'..X)
table.insert(tableStr, '||'..Y)
table.insert(tableStr, '||'..Y)