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: update standing limits for standing earned in mission (#3634)

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

4b56a1cb
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

1 个文件 +4 -1
Modified src/services/missionInventoryUpdateService.ts +4 -1
@@ -17,7 +17,7 @@ import type { IMissionInventoryUpdateRequest, IRewardInfo } from "../types/reque
17 17 import { logger } from "../utils/logger.ts";
18 18 import type { IRngResult } from "./rngService.ts";
19 19 import { SRng, generateRewardSeed, getRandomElement, getRandomInt, getRandomReward } from "./rngService.ts";
20 import type { IMission, TEquipmentKey } from "../types/inventoryTypes/inventoryTypes.ts";
20 import type { IDailyAffiliations, IMission, TEquipmentKey } from "../types/inventoryTypes/inventoryTypes.ts";
21 21 import { equipmentKeys } from "../types/inventoryTypes/inventoryTypes.ts";
22 22 import {
23 23 addBooster,
@@ -41,6 +41,7 @@ import {
41 41 addShipDecorations,
42 42 addSkin,
43 43 addStanding,
44 allDailyAffiliationKeys,
44 45 applyClientEquipmentUpdates,
45 46 combineInventoryChanges,
46 47 CurrencyType,
@@ -1053,6 +1054,8 @@ export const addMissionInventoryUpdates = async (
1053 1054 default:
1054 1055 if (equipmentKeys.includes(key as TEquipmentKey)) {
1055 1056 applyClientEquipmentUpdates(inventory, value as IEquipmentClient[], key as TEquipmentKey);
1057 } else if (allDailyAffiliationKeys.includes(key as keyof IDailyAffiliations)) {
1058 inventory[key as keyof IDailyAffiliations] -= value as number;
1056 1059 }
1057 1060 break;
1058 1061 // if (