4,951
edits
Falterfire (talk | contribs) (Added getPointsOfInterest) |
Falterfire (talk | contribs) (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 |