fix: send heart of deimos email when quest is given
All checks were successful
Build / build (20) (push) Successful in 37s
Build / build (22) (push) Successful in 51s
Build / build (18) (pull_request) Successful in 38s
Build / build (18) (push) Successful in 1m13s
Build / build (20) (pull_request) Successful in 51s
Build / build (22) (pull_request) Successful in 34s

This commit is contained in:
Sainan 2025-03-02 11:48:09 +01:00
parent bbc40d5534
commit 0ba29cae20

View File

@ -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<IQuestKeyClient>();