feat(event): March-April goodness

This commit is contained in:
Sabe Jones
2021-03-23 11:58:21 -05:00
parent cd87d7d605
commit 676a9348d0
86 changed files with 10901 additions and 10557 deletions

View File

@@ -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);
},