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

feature: Include information about progress to next crown level and evolution #1

Merged
merged 2 commits into from
May 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@ enum TrophyCategory {
SKILL
}

"Data for types that track some form of progression."
type ProgressionData {
"The amount obtained."
obtained: Int!

"The amount that can be obtained."
obtainable: Int!
}

"Data on the amount of trophies a user has/can have."
type TrophyData {
"The amount of trophies obtained."
Expand All @@ -58,6 +67,12 @@ type CrownLevel {
"The overall Crown Level."
level: Int!

"The next level that the crown will evolve, if any."
nextEvolutionLevel: Int

"The progress the player is making towards their next level, if any."
nextLevelProgress: ProgressionData

"The amount of trophies the player has."
trophies(
category: TrophyCategory = null
Expand Down