Module:Skills/Cartography: Difference between revisions

Added getPointsOfInterest
(Swapped POI reqs to a separate function so I can more easily call it from Skills/Archaeology)
(Added getPointsOfInterest)
Line 27: Line 27:
end
end
return nil
return nil
end
function p.getPointsOfInterest(checkFunc)
local result = {}
for i, POI in pairs(SkillData.Cartography.worldMaps[1].pointsOfInterest) do
if checkFunc(POI) then
table.insert(result, POI)
end
end
return result
end
end