feat: handle acquisition of upgrades (mods & arcanes)
This commit is contained in:
parent
7cfef6294b
commit
99ff4fe397
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user