mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
feat(event): March-April goodness
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import {
|
||||
getCurrentEvent,
|
||||
getCurrentEventList,
|
||||
getWorldBoss,
|
||||
} from '../../libs/worldState';
|
||||
|
||||
@@ -29,9 +30,10 @@ api.getWorldState = {
|
||||
const worldState = {};
|
||||
|
||||
worldState.worldBoss = await getWorldBoss();
|
||||
worldState.npcImageSuffix = '';
|
||||
|
||||
worldState.currentEvent = getCurrentEvent();
|
||||
worldState.npcImageSuffix = worldState.currentEvent ? worldState.currentEvent.npcImageSuffix : '';
|
||||
|
||||
worldState.currentEventList = getCurrentEventList();
|
||||
|
||||
res.respond(200, worldState);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user