-
Notifications
You must be signed in to change notification settings - Fork 3
Reworked Stat command #63
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
Conversation
robotzurg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! I'll add the rest of the things we discussed
src/utils/canvasHelpers.ts
Outdated
|
|
||
| //draw divides | ||
| ctx.save(); | ||
| const guideRatings = [0, 200, 250, 320, 460, 620, 800, 1000, 1200, 1400, 1600, 1800, 2000, maxRating, minRating] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally we take the MMR from the queue roles, and insert them into this list alongside the other hard coded ones. I can do this
src/utils/canvasHelpers.ts
Outdated
| ctx.save(); | ||
| const guideRatings = [0, 200, 250, 320, 460, 620, 800, 1000, 1200, 1400, 1600, 1800, 2000, maxRating, minRating] | ||
| const eloSplits = config.eloSplits | ||
| const eloColors = [config.colors.stone, config.colors.steel, config.colors.gold, config.colors.lucky, config.colors.glass] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Colors should maybe be stored in the db rather than hard coded here, but I don't think we're ever going to change the rank colors so it should never matter lol
src/utils/canvasHelpers.ts
Outdated
| ctx.shadowBlur = 0 | ||
| ctx.font = config.fonts.tiny | ||
|
|
||
| if (r == maxRating) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This stuff should pull from the db for mmr thresholds
YOU KNOW WHAT TIME IT IS!!
things you need to do :3
make sure it works on non ranked queues
Change the percentile shit to always say Top
Change the /stats command to have an optional byDate clause that is by default false
Add a way to change the background. I think Jeff said that you can have that in /config?