XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

XFESpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 0 Star 0
返回提交历史

XFEstudio/XFESpaceNinjaServer

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

2206ce42
Sainan <sainan@calamity.gg>
提交于

代码差异

1 个文件 +16 -0
Modified src/services/inventoryService.ts +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);