mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 06:37:23 +01:00
feat(event): Spring Fling 2018
This commit is contained in:
@@ -24,9 +24,10 @@ async function getWorldBoss () {
|
||||
*
|
||||
* @apiSuccess {Object} data.worldBoss.active Boolean, true if world boss quest is underway
|
||||
* @apiSuccess {Object} data.worldBoss.extra.worldDmg Object with NPC names as Boolean properties, true if they are affected by Rage Strike
|
||||
* @apiSuccess {Object} data.worldBoss.key Quest content key for the world boss
|
||||
* @apiSuccess {Object} data.worldBoss.progress.hp Current Health of the world boss
|
||||
* @apiSuccess {Object} data.worldBoss.progress.rage Current Rage of the world boss
|
||||
* @apiSuccess {Object} data.worldBoss.key String, Quest content key for the world boss
|
||||
* @apiSuccess {Object} data.worldBoss.progress.hp Number, Current Health of the world boss
|
||||
* @apiSuccess {Object} data.worldBoss.progress.rage Number, Current Rage of the world boss
|
||||
* @apiSuccess {Object} data.npcImageSuffix String, trailing component of NPC image filenames
|
||||
*
|
||||
*/
|
||||
api.getWorldState = {
|
||||
@@ -36,6 +37,7 @@ api.getWorldState = {
|
||||
let worldState = {};
|
||||
|
||||
worldState.worldBoss = await getWorldBoss();
|
||||
worldState.npcImageSuffix = 'spring';
|
||||
|
||||
res.respond(200, worldState);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user