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

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

fix: set ModQuestTeshinAccess when using cheats to complete mod quest (#2935)

This is required to go to Teshin's relay room after U40. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2935 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

0d21c73a
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +6 -0
Modified src/services/questService.ts +6 -0
@@ -11,6 +11,7 @@ import { addFixedLevelRewards } from "./missionInventoryUpdateService.ts";
11 11 import type { IInventoryChanges } from "../types/purchaseTypes.ts";
12 12 import questCompletionItems from "../../static/fixed_responses/questCompletionRewards.json" with { type: "json" };
13 13 import type { ITypeCount } from "../types/commonTypes.ts";
14 import { addString } from "../helpers/stringHelpers.ts";
14 15
15 16 export interface IUpdateQuestRequest {
16 17 QuestKeys: IQuestKeyClient[];
@@ -175,6 +176,11 @@ export const completeQuest = async (
175 176 existingQuestKey.Completed = true;
176 177 existingQuestKey.CompletionDate = new Date();
177 178 await handleQuestCompletion(inventory, questKey, undefined, run > 0);
179
180 if (questKey == "/Lotus/Types/Keys/ModQuest/ModQuestKeyChain") {
181 // This would be set by the client during the equilogue, but since we're cheating through, we have to do it ourselves.
182 addString(inventory.NodeIntrosCompleted, "ModQuestTeshinAccess");
183 }
178 184 }
179 185
180 186 return existingQuestKey.toJSON<IQuestKeyClient>();