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

proposal for /v2/achievements #23

Merged
merged 2 commits into from Dec 10, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
75 changes: 75 additions & 0 deletions v2/achievements/achievements.js
@@ -0,0 +1,75 @@
// GET /v2/achievements
[
{
"id" : 1,
"type" : "achievement",
"title" : "If We Only Had Marshmallows",
"description" : "At least you'll be warm.",
"hint" : "Your team lit every bonfire in Snowblind fractal inside the Fractals of the Mists.",
"related_maps" : [123], // for those with location hints, map ids
"category" : 2,
"tiers" :
[
{
"tier" : 1,
"threshold" : 1, // amount of objectives that must be reached
"points" : 5
}
],
"objective_count" : 1 // "1" for directly unlockable achievements such as skill based achievements
},
{
"id" : 2,
"type" : "achievement",
"title" : "Dungeon Master",
"description" : "Mastering the deepest secrets of the darkest corners.",
"hint" : "Complete 8 explorable dungeons.",
"category" : 3,
"tiers" :
[
{
"tier" : 1,
"threshold" : 3,
"points" : 10
}
],
"rewards" :
{
"title" : "Dungeon Master"
},
"objective_count" : 3, // in this case the count of achievements that must be unlocked
"achievement_ids" : [3,4,5]
},
{
"id" : 3,
"type" : "collection",
"title" : "Luminescent Gloves",
"description" : "Mastering the deepest secrets of the darkest corners.",
"hint" : "Collect the 10 parts required to assemble Luminescent Gloves.",
"category" : 5,
"tiers" :
[
{
"tier" : 1,
"threshold" : 1,
"points" : 1
},
{
"tier" : 2,
"threshold" : 5,
"points" : 1
},
{
"tier" : 3,
"threshold" : 10,
"points" : 3
}
],
"rewards" :
{
"items" : [1000] // not sure if there exist achievements with multiple item rewards
},
"objective_count" : 3, // in this case the count of collectables
"collectables" : [1001,1002,1003] // items that need to be collected
}
]
19 changes: 19 additions & 0 deletions v2/achievements/categories.js
@@ -0,0 +1,19 @@
// GET /v2/achievements/categories
[
{
"id" : 1,
"title" : "General",
"subcategories" :
[
{
"id" : 2,
"title" : "Fractals of the Mists",
},
{
"id" : 3,
"title" : "Dungeons",
"main_achievement" : 2 // used as description of the category and colored in the same color as the category (you may notice it ingame)
}
]
}
]