返回提交历史
Modified
src/services/inventoryService.ts
+16
-0
XFEstudio/XFESpaceNinjaServer
feat: handle acquisition of upgrades (mods & arcanes) (#424)
2206ce42
代码差异
1 个文件
+16
-0
@@ -180,6 +180,22 @@ export const addItem = async (
180
180
[weaponType]: [weapon]
181
181
}
182
182
};
183
case "Upgrades": {
184
const inventory = await getInventory(accountId);
185
const changes = [
186
{
187
ItemType: typeName,
188
ItemCount: quantity
189
}
190
];
191
addMods(inventory, changes);
192
await inventory.save();
193
return {
194
InventoryChanges: {
195
ShipDecorations: changes
196
}
197
};
198
}
183
199
case "Objects": {
184
200
// /Lotus/Objects/Tenno/Props/TnoLisetTextProjector (Note Beacon)
185
201
const inventory = await getInventory(accountId);