4,951
edits
Falterfire (talk | contribs) (Added p.getAreas so I can call it in CombatAreas/Tables) |
Falterfire (talk | contribs) (areaName => name) |
||
Line 23: | Line 23: | ||
--There are three types of areas but the lists are pretty short so looping all of them isn't a real issue | --There are three types of areas but the lists are pretty short so looping all of them isn't a real issue | ||
for i, area in pairs(AreaData.combatAreas) do | for i, area in pairs(AreaData.combatAreas) do | ||
if area. | if area.name == name then | ||
return processArea(area, i, 'combat') | return processArea(area, i, 'combat') | ||
end | end | ||
Line 29: | Line 29: | ||
for i, area in pairs(AreaData.slayerAreas) do | for i, area in pairs(AreaData.slayerAreas) do | ||
if area. | if area.name == name then | ||
return processArea(area, i, 'slayer') | return processArea(area, i, 'slayer') | ||
end | end |