From 76e40685ab6598505ebd25e92cf7e5895238f453 Mon Sep 17 00:00:00 2001 From: VampireKitten Date: Tue, 25 Feb 2025 17:59:23 +0100 Subject: [PATCH 1/4] Fix acquiring blueprints as rewards Fixes the acquisition of blueprints as rewards, such as those rewarded by the Junctions. --- src/services/missionInventoryUpdateService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index d0e82376..ac46875f 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -351,7 +351,7 @@ export const addFixedLevelRewards = ( if (rewards.items) { for (const item of rewards.items) { MissionRewards.push({ - StoreItem: `/Lotus/StoreItems${item.substring("Lotus/".length)}`, + StoreItem: item.includes(`/StoreItems/`) ? item : `/Lotus/StoreItems${item.substring("Lotus/".length)}`, ItemCount: 1 }); } @@ -359,7 +359,7 @@ export const addFixedLevelRewards = ( if (rewards.countedItems) { for (const item of rewards.countedItems) { MissionRewards.push({ - StoreItem: `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`, + StoreItem: item.ItemType.includes(`/StoreItems/`) ? item.ItemType : `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`, ItemCount: item.ItemCount }); } -- 2.47.2 From 7a2c187d541d4ddef5ceba221dc8994441e769ec Mon Sep 17 00:00:00 2001 From: VampireKitten Date: Tue, 25 Feb 2025 18:50:37 +0100 Subject: [PATCH 2/4] Fixed formatting --- src/services/missionInventoryUpdateService.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index ac46875f..2d393e22 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -359,7 +359,9 @@ export const addFixedLevelRewards = ( if (rewards.countedItems) { for (const item of rewards.countedItems) { MissionRewards.push({ - StoreItem: item.ItemType.includes(`/StoreItems/`) ? item.ItemType : `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`, + StoreItem: item.ItemType.includes(`/StoreItems/`) + ? item.ItemType + : `/Lotus/StoreItems${item.ItemType.substring("Lotus/".length)}`, ItemCount: item.ItemCount }); } -- 2.47.2 From e903dce30767b433dcae62aa65b2ebeff0a87486 Mon Sep 17 00:00:00 2001 From: VampireKitten Date: Mon, 7 Apr 2025 00:57:27 +0200 Subject: [PATCH 3/4] 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 + } + ] } -- 2.47.2 From 2c552f7b8ab82fa1f9df566e6fed0f0f0d1e1b7d Mon Sep 17 00:00:00 2001 From: VampireKitten Date: Mon, 7 Apr 2025 00:58:47 +0200 Subject: [PATCH 4/4] Fixed wrong quest key --- src/services/questService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/questService.ts b/src/services/questService.ts index 5af7d723..e738eb57 100644 --- a/src/services/questService.ts +++ b/src/services/questService.ts @@ -177,7 +177,7 @@ export const completeQuest = async (inventory: TInventoryDatabaseDocument, quest await giveKeyChainMissionReward(inventory, { KeyChain: questKey, ChainStage: i }); } - if (questKey == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain") { + if (questKey == "/Lotus/Types/Keys/OrokinMoonQuest/OrokinMoonQuestKeyChain") { void createMessage(inventory.accountOwnerId, [ { sndr: "/Lotus/Language/Bosses/Ordis", -- 2.47.2