Hey wonderful guest! Please take a minute and register for an account here at codeleakers.com. It takes less than a minute and you will feel better about yourself and life in general. If you do not wish to register, you are still free to browse the site. Thanks!

Basically, it takes a player's current level, and how much a potion the player will drink will drop that level, and if that amount is below the next multiple of ten (i.e. 20, 30, 40, etc.), it will only drop the player's level down to that multiple of ten.

To explain better, say the player's level is 43. And he drinks a potion that would drop his level 5 points normally. This method calculates that he can only drop 3 levels before hitting a multiple of ten, which is a no-no.