From f1e1f7cd8bca8315c525179f2075aef40cc14237 Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Wed, 30 Jul 2025 00:02:10 +0200 Subject: [PATCH] feat: claiming of tennolive relay's secret --- src/services/inventoryService.ts | 12 ++++++++++-- src/types/purchaseTypes.ts | 1 + 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 681ed578..48cd8f7c 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -1341,7 +1341,7 @@ export const addStanding = ( // TODO: AffiliationMods support (Nightwave). export const updateGeneric = async (data: IGenericUpdate, accountId: string): Promise => { - const inventory = await getInventory(accountId, "NodeIntrosCompleted MiscItems"); + const inventory = await getInventory(accountId, "NodeIntrosCompleted MiscItems ShipDecorations"); // Make it an array for easier parsing. if (typeof data.NodeIntrosCompleted === "string") { @@ -1350,7 +1350,15 @@ export const updateGeneric = async (data: IGenericUpdate, accountId: string): Pr const inventoryChanges: IInventoryChanges = {}; for (const node of data.NodeIntrosCompleted) { - if (node == "KayaFirstVisitPack") { + if (node == "TC2025") { + inventoryChanges.ShipDecorations = [ + { + ItemType: "/Lotus/Types/Items/ShipDecos/TauGrineerLancerBobbleHead", + ItemCount: 1 + } + ]; + addShipDecorations(inventory, inventoryChanges.ShipDecorations); + } else if (node == "KayaFirstVisitPack") { inventoryChanges.MiscItems = [ { ItemType: "/Lotus/Types/Items/MiscItems/1999FixedStickersPack", diff --git a/src/types/purchaseTypes.ts b/src/types/purchaseTypes.ts index 8b0db0f7..a6764a35 100644 --- a/src/types/purchaseTypes.ts +++ b/src/types/purchaseTypes.ts @@ -74,6 +74,7 @@ export type IInventoryChanges = { InfestedFoundry?: IInfestedFoundryClient; Drones?: IDroneClient[]; MiscItems?: IMiscItem[]; + ShipDecorations?: ITypeCount[]; EmailItems?: ITypeCount[]; CrewShipRawSalvage?: ITypeCount[]; Nemesis?: Partial; -- 2.47.2