Anonymous

Module:CombatAreas: Difference between revisions

From Melvor Idle
areaName => name
(Added p.getAreas so I can call it in CombatAreas/Tables)
(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.areaName == name then
     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.areaName == name then
     if area.name == name then
       return processArea(area, i, 'slayer')
       return processArea(area, i, 'slayer')
     end
     end