From 99ff4fe397bd70a32b7eb98a6d93fc5fe2cee5b2 Mon Sep 17 00:00:00 2001 From: Sainan Date: Sat, 29 Jun 2024 08:30:22 +0200 Subject: [PATCH] feat: handle acquisition of upgrades (mods & arcanes) --- src/services/inventoryService.ts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index d5a4edb9..2f2782a2 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -178,6 +178,22 @@ export const addItem = async ( [weaponType]: [weapon] } }; + case "Upgrades": { + const inventory = await getInventory(accountId); + const changes = [ + { + ItemType: typeName, + ItemCount: quantity + } + ]; + addMods(inventory, changes); + await inventory.save(); + return { + InventoryChanges: { + ShipDecorations: changes + } + }; + } case "Objects": { // /Lotus/Objects/Tenno/Props/TnoLisetTextProjector (Note Beacon) const inventory = await getInventory(accountId);