I'm working on an RPG leveling formula. Whenever the player gets enough exp (The level * 25), they level up. This is the equation I currently have:
Level = Level + XP / (Level * 25)
The issue is if the player is level 1 and gains 75 exp, they'll be level 4 when they should only be level 3 since if you are level 2, the exp requirement would be (level * 25) aka 50 and if you are level 1, the exp requirement would be (level * 25) aka 25, equating to 75 exp required to get to level 3. The equation treats the player as if they're level 1. How can I fix this?