Module:Prayer: Difference between revisions

formatting tweaks
(Set up formatting for Prayer Level requirement)
(formatting tweaks)
Line 91: Line 91:
   if prayer.pointsPerPlayer > 0 then
   if prayer.pointsPerPlayer > 0 then
     local val = 0.2 * prayer.pointsPerPlayer
     local val = 0.2 * prayer.pointsPerPlayer
     table.insert(bonusLines, chr.."+"..Shared.round(val, 2, 2).." Prayer XP per damage done")
     table.insert(bonusLines, chr.."+"..Shared.round(val, 1, 1).." Prayer XP per damage done")
   end
   end


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