feat: handle acquisition of upgrades (mods & arcanes) (#424)
This commit is contained in:
parent
ec9c2c89c2
commit
2206ce4235
@ -180,6 +180,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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user