Module:Skills/Cartography: Difference between revisions

Added Discovery Modifier column to POI table
(Digsites now get linked from the table)
(Added Discovery Modifier column to POI table)
Line 112: Line 112:
local tableStr = {}
local tableStr = {}
table.insert(tableStr, '{| class="wikitable sortable lighttable"')
table.insert(tableStr, '{| class="wikitable sortable lighttable"')
table.insert(tableStr, '\r\n|-\r\n!colspan="2"|Name!!Type!!X!!Y!!Requirements!!Discovery Rewards!!Active Effect')
table.insert(tableStr, '\r\n|-\r\n!colspan="2"|Name!!Type!!X!!Y!!Requirements!!Discovery Rewards!!Discovery Modifiers!!Active Effect')
for i, POI in pairs(SkillData.Cartography.worldMaps[1].pointsOfInterest) do
for i, POI in pairs(SkillData.Cartography.worldMaps[1].pointsOfInterest) do
Line 180: Line 180:
end
end
--TODO: Add Active Modifiers
--Add Discovery Modifiers
table.insert(tableStr, '\r\n|')
if POI.discoveryModifiers ~= nil then
table.insert(tableStr, Constants.getModifiersText(POI.discoveryModifiers.modifiers)..' (for '..POI.discoveryModifiers.moves..' travels)')
end
--Add Active Modifiers
table.insert(tableStr, '\r\n|')
table.insert(tableStr, '\r\n|')
if POI.activeModifiers ~= nil then
if POI.activeModifiers ~= nil then
38

edits