Module:Prayer: Difference between revisions

Set up formatting for Prayer Level requirement
(Added getPrayerCategories)
(Set up formatting for Prayer Level requirement)
Line 2: Line 2:


local SkillData = mw.loadData('Module:Skills/data')
local SkillData = mw.loadData('Module:Skills/data')
local Constants = mw.loadData('Module:Constants/data')


local Shared = require('Module:Shared')
local Shared = require('Module:Shared')
local Items = require('Module:Items')
local Icons = require('Module:Icons')
local Icons = require('Module:Icons')


Line 118: Line 116:
   elseif statName == "prayerEffectList" then
   elseif statName == "prayerEffectList" then
     return p.getPrayerEffect(prayer, true)
     return p.getPrayerEffect(prayer, true)
  elseif statName == 'prayerLevel' then
    return Icons._SkillReq('Prayer', prayer['prayerLevel'], true)
   else
   else
     return prayer[statName]
     return prayer[statName]