From 0ba29cae20655cc218487757a449f3252b6ad94d Mon Sep 17 00:00:00 2001 From: Sainan Date: Sun, 2 Mar 2025 11:48:09 +0100 Subject: [PATCH] fix: send heart of deimos email when quest is given --- src/services/questService.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/services/questService.ts b/src/services/questService.ts index d0bdd9db..d5ad3965 100644 --- a/src/services/questService.ts +++ b/src/services/questService.ts @@ -82,6 +82,18 @@ export const addQuestKey = (inventory: TInventoryDatabaseDocument, questKey: IQu logger.warn(`Quest key ${questKey.ItemType} already exists. It will not be added`); return; } + + if (questKey.ItemType == "/Lotus/Types/Keys/InfestedMicroplanetQuest/InfestedMicroplanetQuestKeyChain") { + void createMessage(inventory.accountOwnerId.toString(), [ + { + sndr: "/Lotus/Language/Bosses/Loid", + icon: "/Lotus/Interface/Icons/Npcs/Entrati/Loid.png", + sub: "/Lotus/Language/InfestedMicroplanet/DeimosIntroQuestInboxTitle", + msg: "/Lotus/Language/InfestedMicroplanet/DeimosIntroQuestInboxMessage" + } + ]); + } + const index = inventory.QuestKeys.push(questKey); return inventory.QuestKeys[index - 1].toJSON(); -- 2.47.2