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

feat: acquiring quest keys on versions with client-side drops (#4268)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4268 Reviewed-by: Sainan <63328889+sainan@users.noreply.github.com> Co-authored-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com> Co-committed-by: AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>

a9cf4fb3
AMelonInsideLemon <166175391+AMelonInsideLemon@users.noreply.github.com>
提交于

代码差异

2 个文件 +7 -1
Modified src/services/missionInventoryUpdateService.ts +6 -1
@@ -57,7 +57,7 @@ import {
57 57 updateIncentiveStates,
58 58 updateSyndicate
59 59 } from "./inventoryService.ts";
60 import { updateQuestKey } from "./questService.ts";
60 import { addQuestKey, updateQuestKey } from "./questService.ts";
61 61 import { Types } from "mongoose";
62 62 import type { IAffiliationMods, IInventoryChanges } from "../types/purchaseTypes.ts";
63 63 import {
@@ -395,6 +395,11 @@ export const addMissionInventoryUpdates = async (
395 395 case "RawUpgrades":
396 396 addMods(inventory, value);
397 397 break;
398 case "CollectedQuestKeys":
399 for (const questKey of value) {
400 addQuestKey(inventory, { ItemType: questKey });
401 }
402 break;
398 403 case "MiscItems":
399 404 case "BonusMiscItems": {
400 405 const miscItems: ITypeCount[] = [];
Modified src/types/requestTypes.ts +1 -0
@@ -60,6 +60,7 @@ export type IMissionInventoryUpdateRequest = {
60 60 CMI?: boolean;
61 61 EJC?: boolean;
62 62
63 CollectedQuestKeys?: string[]; // versions with client-side drops puts quests here
63 64 SyndicateId?: string;
64 65 SortieId?: string;
65 66 CalendarProgress?: { challenge: string }[];