Module:Skills/Cartography: Difference between revisions

added p.getPointOfInterestForDigSite
(Added getPointsOfInterest)
(added p.getPointOfInterestForDigSite)
Line 12: Line 12:
for i, POI in pairs(SkillData.Cartography.worldMaps[1].pointsOfInterest) do
for i, POI in pairs(SkillData.Cartography.worldMaps[1].pointsOfInterest) do
if POI.id == id then
if POI.id == id then
return POI
end
end
return nil
end
function p.getPointOfInterestForDigSite(digSiteID)
for i, POI in pairs(SkillData.Cartography.worldMaps[1].pointsOfInterest) do
if POI.digSiteID ~= nil and POI.digSiteID == digSiteID then
return POI
return POI
end
end