Skip to content

Commit

Permalink
Fix Receiving Zero Exp When Below Level Cap (#4305)
Browse files Browse the repository at this point in the history
* fix logic for calculating exp from level cap when below cap

* Update src/level_caps.c

Co-authored-by: LOuroboros <[email protected]>

---------

Co-authored-by: LOuroboros <[email protected]>
  • Loading branch information
ravepossum and LOuroboros authored Mar 26, 2024
1 parent 9b2feaf commit 68fa212
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/level_caps.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,13 @@ u32 GetSoftLevelCapExpValue(u32 level, u32 expValue)
else
return expValue / sExpScalingDown[levelDifference];
}
else if (level < currentLevelCap)
{
return expValue;
}
else
{
return 0;
}

}

0 comments on commit 68fa212

Please sign in to comment.