-
Notifications
You must be signed in to change notification settings - Fork 24
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
Basic August support #506
Basic August support #506
Conversation
src/resources/2023/AugustScepter.ts
Outdated
* @returns Today's august scepter skill | ||
*/ | ||
export function todaysSkill(): Skill { | ||
return SKILLS[today() - 1]; |
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.
Is there a reason for doing it this way rather than just referring to the skillnumber minus a constant (7451)? Would mean we dont have to list out all the skill names, which feels neater to me?
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.
Yeah we can do that. I still think we should export the constant.
Because you're doing arithmetic, you'll want to do like toSkill((7451 + today()).toFixed(0))
because of dumb int vs float stuff
Basic August support
No description provided.