Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added converter functions for Experience points and levels #3121

Closed
wants to merge 2 commits into from

Conversation

zisis912
Copy link
Contributor

These two functions allow someone to easily calculate how many xp points a certain amount of xp levels equate to, and vice versa.

I know it sounds dumb easy but considering it needs exponents and square roots and stuff I thought why not.

@rom1504
Copy link
Member

rom1504 commented Jul 29, 2023

duplicate of #3124

@rom1504 rom1504 closed this Jul 29, 2023
@zisis912
Copy link
Contributor Author

@rom1504 This is not a duplicate, it is a completely different function. What #3124 does is get the total xo.the bot has.

These functions help someone convert levels to points and vice versa.

For example, convertLevelsToXpPoints(30) returns 1395 and convertXpPointsToLevels(1395) does the exact opposite.

This function has a parameter unlike #3124, I would suggest you check the file changes to get a better idea of what this is

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants