Skip to content

Conversation

@danthe1st
Copy link

This PR adds the following improvements to Java-Discord#476:

  • The min and max limits are made configurable
  • In order to avoid precision and possible integer division issues (in case the ratio is actually an integer), the experience is multiplied with the fraction to subtract before dividing by 100
  • tests for XP subtraction

@liquiddevelopmentnet liquiddevelopmentnet merged commit 8af2ac3 into liquiddevelopmentnet:min-xp Jan 26, 2024
@danthe1st danthe1st deleted the liquiddevelopmentnet-min-xp branch January 26, 2024 11:05
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