From 717b6982599319d99680512f53022e6208464903 Mon Sep 17 00:00:00 2001 From: OriginalThing Date: Fri, 20 Sep 2024 04:23:15 +0000 Subject: [PATCH] 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 --- src/Modules/Build.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Modules/Build.lua b/src/Modules/Build.lua index d5ba8ebe7c..57d1277b13 100644 --- a/src/Modules/Build.lua +++ b/src/Modules/Build.lua @@ -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