Module:Prayer: Difference between revisions

Amend non-existent property references
(Fix typo)
(Amend non-existent property references)
Line 90: Line 90:
return p.getPrayerEffect(prayer)
return p.getPrayerEffect(prayer)
elseif statName == 'prayerLevel' then
elseif statName == 'prayerLevel' then
return Icons._SkillReq('Prayer', prayer['prayerLevel'])
return Icons._SkillReq('Prayer', prayer.level)
else
else
return prayer[statName]
return prayer[statName]
Line 139: Line 139:
result = result..'\r\n|-'
result = result..'\r\n|-'
result = result..'\r\n|'..Icons.Icon({prayer.name, type='prayer', notext=true, size='50'})
result = result..'\r\n|'..Icons.Icon({prayer.name, type='prayer', notext=true, size='50'})
result = result..'||'..Icons.Icon({prayer.name, type='prayer', noicon=true})..'||'..prayer.prayerLevel
result = result..'||'..Icons.Icon({prayer.name, type='prayer', noicon=true})..'||'..prayer.level
result = result..'||'..p._getPrayerEffect(prayer)
result = result..'||'..p._getPrayerEffect(prayer)
result = result..'||'..p.getPrayerCost(prayer)
result = result..'||'..p.getPrayerCost(prayer)