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

fix: Grant unlock point per badge instead of per badge level #80

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cetteup
Copy link

@cetteup cetteup commented Nov 22, 2024

To determine the number badge-based unlock points, the current implementation does a COUNT of badges >= $level, with $level being the configured badge level for any unlock points (usually 2 = veteran). However, if a player has both the level 2 and level 3 badge, they receive two unlock points, since both are counted.

This sets the maximum number of badge-based unlock points to 14 (7 badges * 2 points per level). Which is nonsense because it results in the number of overall obtainable points (14 badge + 7 rank = 21) being higher than the number of things to unlock (7 classes * 2 unlocks = 14). Meaning a player who has all weapons unlocked will receive an unlock prompt without anything to unlock.

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.

1 participant