XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 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
Sainan <sainan@calamity.inc>
提交于

代码差异

1 个文件 +12 -0
Modified src/services/questService.ts +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>();