aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPinapelz <yukais@pinapelz.com>2024-09-17 17:18:53 -0700
committerPinapelz <yukais@pinapelz.com>2024-09-17 17:18:53 -0700
commit644a57b60b48621bebbfc4c519027416d3f2fdae (patch)
treecf1e3c753702b94e12cacb221355d7b96200af4d
parent880e621b92574f79c2db16a73eb18b6a01249936 (diff)
fix: xp calculation doesn't take into account current progress above 30
-rw-r--r--Malmstone/Utils/MalmstoneXPCalculator.cs5
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);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage