Wynncraft / WynncraftAPI

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

Add status of gamemodes (for hardcore) #21

Open dukio opened 5 years ago

dukio commented 5 years ago
"gamemode": {
    "craftsman": true,
    "hardcore": true,
    "ironman": true
},

Currently hardcore is true even if the challenge has failed, would it be possible to also include the status of the challenge?

It could be another object like gamemodeStatus containing the status of the challenges, example:

"gamemode": {
    "craftsman": true,
    "hardcore": true,
    "ironman": true
},
"gamemodeStatus": {
    "craftsman": true,
    "hardcore": false,
    "ironman": true
},

In this example, player has all 3 challenges active but has failed the hardcore one.

(yes, currently only hardcore can be failed, but I imagine in the future we'll see more gamemodes in Wynncraft)

dukio commented 5 years ago

I just noticed that /kill and /duel seems to not count for deaths in API, was this made for the hardcore gamemode? so we can detect if the player failed the challenge

If so... is this reliable?