Fix Receiving Zero Exp When Below Level Cap (#4305)

* fix logic for calculating exp from level cap when below cap

* Update src/level_caps.c

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>

---------

Co-authored-by: LOuroboros <lunosouroboros@gmail.com>
This commit is contained in:
ravepossum 2024-03-26 03:58:00 -04:00 committed by GitHub
parent 9b2feafdf2
commit 68fa212738
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -65,7 +65,13 @@ u32 GetSoftLevelCapExpValue(u32 level, u32 expValue)
else
return expValue / sExpScalingDown[levelDifference];
}
else if (level < currentLevelCap)
{
return expValue;
}
else
{
return 0;
}
}