From 42aca103ed9dddd0a57e4e4489bf23df30a1bd28 Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 22 Mar 2025 01:15:09 -0700 Subject: [PATCH] feat: handle ShipDecorations in missionInventoryUpdate (#1267) Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1267 --- src/services/missionInventoryUpdateService.ts | 5 +++++ src/types/requestTypes.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/src/services/missionInventoryUpdateService.ts b/src/services/missionInventoryUpdateService.ts index 17f94c84..04171dc6 100644 --- a/src/services/missionInventoryUpdateService.ts +++ b/src/services/missionInventoryUpdateService.ts @@ -24,6 +24,7 @@ import { addMissionComplete, addMods, addRecipes, + addShipDecorations, combineInventoryChanges, updateSyndicate } from "@/src/services/inventoryService"; @@ -147,6 +148,10 @@ export const addMissionInventoryUpdates = async ( case "CrewShipAmmo": addCrewShipAmmo(inventory, value); break; + case "ShipDecorations": + // e.g. when getting a 50+ score in happy zephyr, this is how the poster is given. + addShipDecorations(inventory, value); + break; case "FusionBundles": { let fusionPoints = 0; for (const fusionBundle of value) { diff --git a/src/types/requestTypes.ts b/src/types/requestTypes.ts index 4364b77b..36a55bfb 100644 --- a/src/types/requestTypes.ts +++ b/src/types/requestTypes.ts @@ -47,6 +47,7 @@ export type IMissionInventoryUpdateRequest = { CrewShipAmmo?: ITypeCount[]; BonusMiscItems?: ITypeCount[]; EmailItems?: ITypeCount[]; + ShipDecorations?: ITypeCount[]; SyndicateId?: string; SortieId?: string;