17,030
edits
(_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 = | -- 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, | -- 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 |