Skip to content

Commit 717b698

Browse files
Fix 3.1 xp multiplier calc for levels 95-99 (#8283)
* fix 3.1 xp multiplier calc for levels 95-99 * corrected lvl 97 multplier
1 parent f4df5de commit 717b698

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Modules/Build.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ function buildMode:Init(dbFileName, buildName, buildXML, convertBuild, importLin
191191
mult = ((playerLevel + 5) / (playerLevel + 5 + diff ^ 2.5)) ^ 1.5
192192
end
193193
if playerLevel >= 95 then
194-
mult = mult * (1 / (1 + 0.1 * (playerLevel - 94)))
194+
local xpPenalty = ({0.935, 0.885, 0.813, 0.7175, 0.6})[playerLevel - 94] or 0
195+
mult = mult * (1 / (1 + 0.1 * (playerLevel - 94))) * xpPenalty
195196
end
196197
if mult > 0.01 then
197198
local line = level

0 commit comments

Comments
 (0)