Compare commits

..

2 Commits

Author SHA1 Message Date
d8fd872aee chore: fix code duplication for quest completion
All checks were successful
Build / build (18) (push) Successful in 1m15s
Build / build (22) (push) Successful in 36s
Build / build (20) (push) Successful in 1m7s
Build / build (18) (pull_request) Successful in 1m15s
Build / build (20) (pull_request) Successful in 38s
Build / build (22) (pull_request) Successful in 1m15s
2025-04-07 01:06:53 +02:00
4362a842ff Fix the rewards of Second Dream (#1498)
All checks were successful
Build / build (18) (push) Successful in 40s
Build / build (20) (push) Successful in 1m13s
Build / build (22) (push) Successful in 1m4s
Build Docker image / docker (push) Successful in 34s
Adds the two missing inbox items of Second Dream.

Reviewed-on: #1498
Co-authored-by: VampireKitten <dynamightkobold@gmail.com>
Co-committed-by: VampireKitten <dynamightkobold@gmail.com>
2025-04-06 16:05:47 -07:00
2 changed files with 25 additions and 5 deletions

View File

@ -198,6 +198,24 @@ const handleQuestCompletion = async (
): Promise<void> => { ): Promise<void> => {
logger.debug(`completed quest ${questKey}`); logger.debug(`completed quest ${questKey}`);
if (questKey == "/Lotus/Types/Keys/OrokinMoonQuest/OrokinMoonQuestKeyChain") {
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
}
]);
} else if (questKey == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain") {
setupKahlSyndicate(inventory);
}
const questCompletionItems = getQuestCompletionItems(questKey); const questCompletionItems = getQuestCompletionItems(questKey);
logger.debug(`quest completion items`, questCompletionItems); logger.debug(`quest completion items`, questCompletionItems);
if (questCompletionItems) { if (questCompletionItems) {
@ -205,10 +223,6 @@ const handleQuestCompletion = async (
} }
if (inventory.ActiveQuest == questKey) inventory.ActiveQuest = ""; if (inventory.ActiveQuest == questKey) inventory.ActiveQuest = "";
if (questKey == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain") {
setupKahlSyndicate(inventory);
}
}; };
export const giveKeyChainItem = async ( export const giveKeyChainItem = async (

View File

@ -5,5 +5,11 @@
"ItemCount": 1 "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
}
]
} }