-
-
Notifications
You must be signed in to change notification settings - Fork 876
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Redo XP perks #5095
base: master
Are you sure you want to change the base?
Redo XP perks #5095
Conversation
I appreciate this PR but I'll have to think about if I merge this or not, you see I have a complete rewrite for perks in another branch that adds new functionality, I'd just have to port the code over... 😮💨 |
It would probably be better to either: A. Merge and fix this issue I don't think my solution is bad, or even hard to reverse if needed. But leaving this unpatched shouldn't really be considered? |
Good points, I'll think on it, and review the PR in the near future. |
This PR removes the old 'else if' chain used for xp perks and replaces it with an enum class for faster usage and other benefits. This PR also brings another important change by ensuring the highest XP multiplier amount is always used for the player.
Before this change, mcMMO would always use the custom multiplier if the player had permission for it even if it was lower than other multiplier amounts. This would cause conflicts for those who want to use the custom xp amount for a lower xp boost, and then give their players higher boost amounts later on.