From 9997509461f17cf33a72a614b313d00593df0bb4 Mon Sep 17 00:00:00 2001 From: RavePossum Date: Mon, 25 Mar 2024 22:50:02 -0400 Subject: [PATCH 1/2] fix logic for calculating exp from level cap when below cap --- src/level_caps.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/level_caps.c b/src/level_caps.c index 9a51edccb00f..8537c9607616 100644 --- a/src/level_caps.c +++ b/src/level_caps.c @@ -65,6 +65,10 @@ u32 GetSoftLevelCapExpValue(u32 level, u32 expValue) else return expValue / sExpScalingDown[levelDifference]; } + else if (level < currentLevelCap) + { + return expValue; + } else return 0; From b2cdfee576c168a7d2a3bee9c042a3850ac1b18e Mon Sep 17 00:00:00 2001 From: ravepossum <145081120+ravepossum@users.noreply.github.com> Date: Mon, 25 Mar 2024 23:03:03 -0400 Subject: [PATCH 2/2] Update src/level_caps.c Co-authored-by: LOuroboros --- src/level_caps.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/level_caps.c b/src/level_caps.c index 8537c9607616..81ffa7b090de 100644 --- a/src/level_caps.c +++ b/src/level_caps.c @@ -70,6 +70,8 @@ u32 GetSoftLevelCapExpValue(u32 level, u32 expValue) return expValue; } else + { return 0; + } }