Wynncraft / WynncraftAPI

Official Wynncraft Public API (Documentation & Issue Tracker)
https://docs.wynncraft.com/
21 stars 10 forks source link

Players API to include challenges for classes #17

Closed dukio closed 5 years ago

dukio commented 5 years ago

So challenges are being added to classes and it would be really cool if the Player API would return those information too for each player class.

Example:

{
  "classes": [
    {
      "name": "archer",
      "challenges": {
        "hardcore": {
          "status": "alive"
        },
        "ironman": true,
        "craftsman": false
      }
    }
  ]
}

So challenges object contains a list of all the challenges with true if it's active or false if it's not. Hardcore is a special case since the player might have that challenge enabled but he failed it by dying. Just wanted to give an example of how it could be implement, there are other ways of doing this and this might (probably is) not the best :stuck_out_tongue:

colinrioux commented 5 years ago

Similar field added in patch 2.0.4