diff --git a/README.md b/README.md index deee20bf..d5b18647 100644 --- a/README.md +++ b/README.md @@ -35,5 +35,5 @@ SpaceNinjaServer requires a `config.json`. To set it up, you can copy the [confi - `RadioLegion2Syndicate` for The Emissary - `RadioLegionIntermissionSyndicate` for Intermission I - `RadioLegionSyndicate` for The Wolf of Saturn Six -- `allTheFissures` can be set to `normal` or `hard` to enable all fissures either in normal or steel path, respectively. +- `worldState.allTheFissures` can be set to `normal` or `hard` to enable all fissures either in normal or steel path, respectively. - `worldState.circuitGameModes` can be set to an array of game modes which will override the otherwise-random pattern in The Circuit. Valid element values are `Survival`, `VoidFlood`, `Excavation`, `Defense`, `Exterminate`, `Assassination`, and `Alchemy`. diff --git a/src/controllers/api/getGuildDojoController.ts b/src/controllers/api/getGuildDojoController.ts index 05d4685c..e9af4170 100644 --- a/src/controllers/api/getGuildDojoController.ts +++ b/src/controllers/api/getGuildDojoController.ts @@ -19,7 +19,7 @@ export const getGuildDojoController: RequestHandler = async (req, res) => { _id: new Types.ObjectId(), pf: "/Lotus/Levels/ClanDojo/DojoHall.level", ppf: "", - CompletionTime: new Date(Date.now()), + CompletionTime: new Date(Date.now() - 1000), DecoCapacity: 600 }); await guild.save(); diff --git a/src/controllers/api/setGuildMotdController.ts b/src/controllers/api/setGuildMotdController.ts index 8007bab0..96c77148 100644 --- a/src/controllers/api/setGuildMotdController.ts +++ b/src/controllers/api/setGuildMotdController.ts @@ -57,7 +57,7 @@ export const setGuildMotdController: RequestHandler = async (req, res) => { await guild.save(); } - if (!account.BuildLabel || version_compare(account.BuildLabel, "2020.03.24.20.24") > 0) { + if (!account.BuildLabel || version_compare(account.BuildLabel, "2020.11.04.18.58") > 0) { res.json({ IsLongMOTD, MOTD }); } else { res.send(MOTD).end(); diff --git a/src/controllers/api/updateQuestController.ts b/src/controllers/api/updateQuestController.ts index 0ca4d857..5bae315a 100644 --- a/src/controllers/api/updateQuestController.ts +++ b/src/controllers/api/updateQuestController.ts @@ -5,6 +5,7 @@ import type { IUpdateQuestRequest } from "../../services/questService.ts"; import { updateQuestKey } from "../../services/questService.ts"; import { getInventory } from "../../services/inventoryService.ts"; import type { IInventoryChanges } from "../../types/purchaseTypes.ts"; +import { sendWsBroadcastTo } from "../../services/wsService.ts"; export const updateQuestController: RequestHandler = async (req, res) => { const accountId = parseString(req.query.accountId); @@ -29,4 +30,5 @@ export const updateQuestController: RequestHandler = async (req, res) => { await inventory.save(); res.send(updateQuestResponse); + sendWsBroadcastTo(accountId, { update_inventory: true }); }; diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index a99784e9..dfb6c815 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -2483,95 +2483,95 @@ const goalMessagesByKey: Record