From e903dce30767b433dcae62aa65b2ebeff0a87486 Mon Sep 17 00:00:00 2001 From: VampireKitten Date: Mon, 7 Apr 2025 00:57:27 +0200 Subject: [PATCH] Fix Second Dream rewards Adds the two inbox mails that should be sent at the end of Second Dream. --- src/services/questService.ts | 16 ++++++++++++++++ .../fixed_responses/questCompletionRewards.json | 8 +++++++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/src/services/questService.ts b/src/services/questService.ts index 6319a724..5af7d723 100644 --- a/src/services/questService.ts +++ b/src/services/questService.ts @@ -177,6 +177,22 @@ export const completeQuest = async (inventory: TInventoryDatabaseDocument, quest await giveKeyChainMissionReward(inventory, { KeyChain: questKey, ChainStage: i }); } + if (questKey == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain") { + void createMessage(inventory.accountOwnerId, [ + { + sndr: "/Lotus/Language/Bosses/Ordis", + msg: "/Lotus/Language/G1Quests/SecondDreamFinishInboxMessage", + att: [ + "/Lotus/Weapons/Tenno/Melee/Swords/StalkerTwo/StalkerTwoSmallSword", + "/Lotus/Upgrades/Skins/Sigils/ScarSigil" + ], + sub: "/Lotus/Language/G1Quests/SecondDreamFinishInboxTitle", + icon: "/Lotus/Interface/Icons/Npcs/Ordis.png", + highPriority: true + } + ]); + } + const questCompletionItems = getQuestCompletionItems(questKey); logger.debug(`quest completion items`, questCompletionItems); if (questCompletionItems) { diff --git a/static/fixed_responses/questCompletionRewards.json b/static/fixed_responses/questCompletionRewards.json index d0f692aa..71fb423e 100644 --- a/static/fixed_responses/questCompletionRewards.json +++ b/static/fixed_responses/questCompletionRewards.json @@ -5,5 +5,11 @@ "ItemCount": 1 } ], - "/Lotus/Types/Keys/InfestedMicroplanetQuest/InfestedMicroplanetQuestKeyChain": [{ "ItemType": "/Lotus/Types/Recipes/WarframeRecipes/BrokenFrameBlueprint", "ItemCount": 1 }] + "/Lotus/Types/Keys/InfestedMicroplanetQuest/InfestedMicroplanetQuestKeyChain": [{ "ItemType": "/Lotus/Types/Recipes/WarframeRecipes/BrokenFrameBlueprint", "ItemCount": 1 }], + "/Lotus/Types/Keys/OrokinMoonQuest/OrokinMoonQuestKeyChain": [ + { + "ItemType": "/Lotus/Types/Keys/RailJackBuildQuest/RailjackBuildQuestEmailItem", + "ItemCount": 1 + } + ] }