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

Shiny Charm not granted after reaching level 50 #838

Open
FlareHD opened this issue May 6, 2024 · 1 comment · May be fixed by #849
Open

Shiny Charm not granted after reaching level 50 #838

FlareHD opened this issue May 6, 2024 · 1 comment · May be fixed by #849
Assignees
Labels
bug Something isn't working

Comments

@FlareHD
Copy link
Contributor

FlareHD commented May 6, 2024

When you reach Level 50 for your shinx, it should allow you to change your shinx into a shiny version with the command /shinx shiny. However, it does not let you change your shinx as the shiny charm is not given to the user once reaching level 50.

Steps to reproduce the behavior:

  1. Go to wherever you use the bot
  2. Reach level 50 with your shinx
  3. Use the command /shinx shiny

Screenshots
image

@FlareHD FlareHD added the bug Something isn't working label May 6, 2024
@Glazelf
Copy link
Owner

Glazelf commented May 6, 2024

addExperience() function might be bugged?

async addExperience(id, experience) {
let shinx = await this.getShinx(id, ['user_id', 'experience']);
const res = await shinx.addExperienceAndLevelUp(experience);
if (res.pre != res.post) {
if (hasPassedLevel(res.pre, res.post, 5)) await this.addEventTrophy(id, 'Bronze Trophy');
if (hasPassedLevel(res.pre, res.post, 15)) await this.addEventTrophy(id, 'Silver Trophy');
if (hasPassedLevel(res.pre, res.post, 30)) await this.addEventTrophy(id, 'Gold Trophy');
if (hasPassedLevel(res.pre, res.post, 50)) await this.addEventTrophy(id, 'Shiny Charm');
};
},

@Glazelf Glazelf linked a pull request May 15, 2024 that will close this issue
@Glazelf Glazelf assigned Glazelf and unassigned Glazelf Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants