diff options
| author | Pinapelz <yukais@pinapelz.com> | 2024-09-17 17:18:53 -0700 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2024-09-17 17:18:53 -0700 |
| commit | 644a57b60b48621bebbfc4c519027416d3f2fdae (patch) | |
| tree | cf1e3c753702b94e12cacb221355d7b96200af4d | |
| parent | 880e621b92574f79c2db16a73eb18b6a01249936 (diff) | |
fix: xp calculation doesn't take into account current progress above 30
| -rw-r--r-- | Malmstone/Utils/MalmstoneXPCalculator.cs | 5 |
1 files changed, 4 insertions, 1 deletions
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); |
