Module:Prayer: Difference between revisions

Implement getPrayers()
(getPrayerTable: Order prayers by level, in line with in-game appearance)
(Implement getPrayers())
Line 26: Line 26:
   end
   end
   return result
   return result
end
function p.getPrayers(checkFunc)
local result = {}
for i, prayer in ipairs(SkillData.Prayer) do
if checkFunc(prayer) then
table.insert(result, prayer)
end
end
return result
end
end