feat: handle ShipDecorations in missionInventoryUpdate (#1267)
All checks were successful
Build / build (20) (push) Successful in 1m7s
Build / build (18) (push) Successful in 1m10s
Build / build (22) (push) Successful in 1m9s
Build Docker image / docker (push) Successful in 39s

Reviewed-on: #1267
This commit is contained in:
Sainan 2025-03-22 01:15:09 -07:00
parent aa95074ee0
commit 42aca103ed
2 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import {
addMissionComplete, addMissionComplete,
addMods, addMods,
addRecipes, addRecipes,
addShipDecorations,
combineInventoryChanges, combineInventoryChanges,
updateSyndicate updateSyndicate
} from "@/src/services/inventoryService"; } from "@/src/services/inventoryService";
@ -147,6 +148,10 @@ export const addMissionInventoryUpdates = async (
case "CrewShipAmmo": case "CrewShipAmmo":
addCrewShipAmmo(inventory, value); addCrewShipAmmo(inventory, value);
break; 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": { case "FusionBundles": {
let fusionPoints = 0; let fusionPoints = 0;
for (const fusionBundle of value) { for (const fusionBundle of value) {

View File

@ -47,6 +47,7 @@ export type IMissionInventoryUpdateRequest = {
CrewShipAmmo?: ITypeCount[]; CrewShipAmmo?: ITypeCount[];
BonusMiscItems?: ITypeCount[]; BonusMiscItems?: ITypeCount[];
EmailItems?: ITypeCount[]; EmailItems?: ITypeCount[];
ShipDecorations?: ITypeCount[];
SyndicateId?: string; SyndicateId?: string;
SortieId?: string; SortieId?: string;