feat: handle ShipDecorations in missionInventoryUpdate
All checks were successful
Build / build (22) (push) Successful in 1m9s
Build / build (22) (pull_request) Successful in 1m12s
Build / build (20) (pull_request) Successful in 1m8s
Build / build (18) (push) Successful in 44s
Build / build (20) (push) Successful in 1m9s
Build / build (18) (pull_request) Successful in 46s

This commit is contained in:
Sainan 2025-03-21 13:33:18 +01:00
parent 5038095c13
commit 3f5563c830
2 changed files with 6 additions and 0 deletions

View File

@ -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) {

View File

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