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: skip Simaris yapping & give items when completing his quest first time in WebUI (#3106)

If you finish "The New Strange", you are expected to have talked to Simars before & received the Sanctuary Initiation Kit. WebUI however didn't consider skipping his yapping & wasn't giving the kit before but this PR fixes that. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/3106 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: Animan8000 <animan8000@noreply.localhost> Co-committed-by: Animan8000 <animan8000@noreply.localhost>

6ba78044
Animan8000 <animan8000@noreply.localhost>
提交于

代码差异

1 个文件 +13 -0
Modified src/services/questService.ts +13 -0
@@ -16,6 +16,7 @@ import { logger } from "../utils/logger.ts";
16 16 import { ExportKeys, ExportRecipes } from "warframe-public-export-plus";
17 17 import { addFixedLevelRewards } from "./missionInventoryUpdateService.ts";
18 18 import { fromOid } from "../helpers/inventoryHelpers.ts";
19 import { handleBundleAcqusition } from "./purchaseService.ts";
19 20 import type { IInventoryChanges } from "../types/purchaseTypes.ts";
20 21 import questCompletionItems from "../../static/fixed_responses/questCompletionRewards.json" with { type: "json" };
21 22 import type { ITypeCount } from "../types/commonTypes.ts";
@@ -293,6 +294,18 @@ const handleQuestCompletion = async (
293 294 highPriority: true
294 295 }
295 296 ]);
297 } else if (questKey == "/Lotus/Types/Keys/DragonQuest/DragonQuestKeyChain" && !isRerun) {
298 let syndicate = inventory.Affiliations.find(x => x.Tag == "LibrarySyndicate");
299 if (!syndicate) {
300 syndicate =
301 inventory.Affiliations[
302 inventory.Affiliations.push({ Tag: "LibrarySyndicate", Standing: 0, Title: 0 }) - 1
303 ];
304 }
305 if (!syndicate.Initiated) {
306 syndicate.Initiated = true;
307 await handleBundleAcqusition("/Lotus/Types/StoreItems/Packages/SanctuaryInitiationKit", inventory);
308 }
296 309 } else if (questKey == "/Lotus/Types/Keys/NewWarQuest/NewWarQuestKeyChain" && !isRerun) {
297 310 setupKahlSyndicate(inventory);
298 311 }