返回提交历史
Modified
src/services/questService.ts
+12
-0
XFEstudio/SpaceNinjaServer
fix: send heart of deimos email when quest is given (#1065)
Fixes #1061 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1065 Co-authored-by: Sainan <sainan@calamity.inc> Co-committed-by: Sainan <sainan@calamity.inc>
f97bdea4
代码差异
1 个文件
+12
-0
@@ -81,6 +81,18 @@ export const addQuestKey = (inventory: TInventoryDatabaseDocument, questKey: IQu
81
81
logger.warn(`Quest key ${questKey.ItemType} already exists. It will not be added`);
82
82
return;
83
83
}
84
85
if (questKey.ItemType == "/Lotus/Types/Keys/InfestedMicroplanetQuest/InfestedMicroplanetQuestKeyChain") {
86
void createMessage(inventory.accountOwnerId.toString(), [
87
{
88
sndr: "/Lotus/Language/Bosses/Loid",
89
icon: "/Lotus/Interface/Icons/Npcs/Entrati/Loid.png",
90
sub: "/Lotus/Language/InfestedMicroplanet/DeimosIntroQuestInboxTitle",
91
msg: "/Lotus/Language/InfestedMicroplanet/DeimosIntroQuestInboxMessage"
92
}
93
]);
94
}
95
84
96
const index = inventory.QuestKeys.push(questKey);
85
97
86
98
return inventory.QuestKeys[index - 1].toJSON<IQuestKeyClient>();