feat: handle acquisition of upgrades (mods & arcanes) #424

Merged
Sainan merged 1 commits from buy-mods into main 2024-06-29 04:55:27 -07:00

View File

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