Anonymous

Module:Prayer: Difference between revisions

From Melvor Idle
_getPrayerEffect: Correct XP per damage value following 1.0 changes
(_getPrayerEffect: Support listing enemy modifiers)
(_getPrayerEffect: Correct XP per damage value following 1.0 changes)
Line 116: Line 116:


   if prayer.pointsPerPlayer > 0 then
   if prayer.pointsPerPlayer > 0 then
     local val = 0.1 * prayer.pointsPerPlayer
  -- Prayer XP ratio is 1/3 in game but is divided by 10 here as HP/damage values
     table.insert(bonusLines, chr.."+"..Shared.round(val, 1, 1).." Prayer XP per damage done")
-- displayed to the player are multiplied by 10 in the standard game mode
local xpRatio = 1 / 30
     local val = xpRatio * prayer.pointsPerPlayer
     table.insert(bonusLines, chr.."+"..Shared.round(val, 3, 3).." Prayer XP per damage done")
   end
   end
   if asList then
   if asList then