4,951
edits
Falterfire (talk | contribs) (Swapped POI reqs to a separate function so I can more easily call it from Skills/Archaeology) |
Falterfire (talk | contribs) (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 | ||