Skip to content

Commit

Permalink
Fix 3.1 xp multiplier calc for levels 95-99 (#8283)
Browse files Browse the repository at this point in the history
* fix 3.1 xp multiplier calc for levels 95-99

* corrected lvl 97 multplier
  • Loading branch information
OriginalThing authored Sep 20, 2024
1 parent f4df5de commit 717b698
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Modules/Build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ function buildMode:Init(dbFileName, buildName, buildXML, convertBuild, importLin
mult = ((playerLevel + 5) / (playerLevel + 5 + diff ^ 2.5)) ^ 1.5
end
if playerLevel >= 95 then
mult = mult * (1 / (1 + 0.1 * (playerLevel - 94)))
local xpPenalty = ({0.935, 0.885, 0.813, 0.7175, 0.6})[playerLevel - 94] or 0
mult = mult * (1 / (1 + 0.1 * (playerLevel - 94))) * xpPenalty
end
if mult > 0.01 then
local line = level
Expand Down

0 comments on commit 717b698

Please sign in to comment.