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: handle ShipDecorations in missionInventoryUpdate (#1267)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1267

42aca103
Sainan <sainan@calamity.inc>
提交于

代码差异

2 个文件 +6 -0
Modified src/services/missionInventoryUpdateService.ts +5 -0
@@ -24,6 +24,7 @@ import {
24 24 addMissionComplete,
25 25 addMods,
26 26 addRecipes,
27 addShipDecorations,
27 28 combineInventoryChanges,
28 29 updateSyndicate
29 30 } from "@/src/services/inventoryService";
@@ -147,6 +148,10 @@ export const addMissionInventoryUpdates = async (
147 148 case "CrewShipAmmo":
148 149 addCrewShipAmmo(inventory, value);
149 150 break;
151 case "ShipDecorations":
152 // e.g. when getting a 50+ score in happy zephyr, this is how the poster is given.
153 addShipDecorations(inventory, value);
154 break;
150 155 case "FusionBundles": {
151 156 let fusionPoints = 0;
152 157 for (const fusionBundle of value) {
Modified src/types/requestTypes.ts +1 -0
@@ -47,6 +47,7 @@ export type IMissionInventoryUpdateRequest = {
47 47 CrewShipAmmo?: ITypeCount[];
48 48 BonusMiscItems?: ITypeCount[];
49 49 EmailItems?: ITypeCount[];
50 ShipDecorations?: ITypeCount[];
50 51
51 52 SyndicateId?: string;
52 53 SortieId?: string;