From 644a57b60b48621bebbfc4c519027416d3f2fdae Mon Sep 17 00:00:00 2001 From: Pinapelz Date: Tue, 17 Sep 2024 17:18:53 -0700 Subject: fix: xp calculation doesn't take into account current progress above 30 --- Malmstone/Utils/MalmstoneXPCalculator.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Malmstone/Utils/MalmstoneXPCalculator.cs b/Malmstone/Utils/MalmstoneXPCalculator.cs index 3ba328f..965221b 100644 --- a/Malmstone/Utils/MalmstoneXPCalculator.cs +++ b/Malmstone/Utils/MalmstoneXPCalculator.cs @@ -129,9 +129,12 @@ namespace Malmstone.Utils if (goalLevel > PvpLevels.Length) { currentLevel = PvpLevels.Length; - currentProgress = 0; } } + else + { + remainingXp -= currentProgress; + } if (goalLevel > PvpLevels.Length) { remainingXp += CalculateRemainingXpBeyondChart(currentLevel, goalLevel); -- cgit v1.2.3