feat: handle acquisition of upgrades (mods & arcanes)

This commit is contained in:
Sainan 2024-06-29 08:30:22 +02:00
parent 7cfef6294b
commit 99ff4fe397

View File

@ -178,6 +178,22 @@ export const addItem = async (
[weaponType]: [weapon] [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": { case "Objects": {
// /Lotus/Objects/Tenno/Props/TnoLisetTextProjector (Note Beacon) // /Lotus/Objects/Tenno/Props/TnoLisetTextProjector (Note Beacon)
const inventory = await getInventory(accountId); const inventory = await getInventory(accountId);