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

fix: give helmet when acquiring a skin (#1304)

Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1304

19bfffaa
Sainan <sainan@calamity.inc>
提交于

代码差异

3 个文件 +16 -8
Modified package-lock.json +4 -4
@@ -18,7 +18,7 @@
18 18 "mongoose": "^8.11.0",
19 19 "morgan": "^1.10.0",
20 20 "typescript": ">=5.5 <5.6.0",
21 "warframe-public-export-plus": "^0.5.47",
21 "warframe-public-export-plus": "^0.5.48",
22 22 "warframe-riven-info": "^0.1.2",
23 23 "winston": "^3.17.0",
24 24 "winston-daily-rotate-file": "^5.0.0"
@@ -4013,9 +4013,9 @@
4013 4013 }
4014 4014 },
4015 4015 "node_modules/warframe-public-export-plus": {
4016 "version": "0.5.47",
4017 "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.47.tgz",
4018 "integrity": "sha512-ZJK3VT1PdSPwZlhIzUVBlydwK4DM0sOmeCiixVMgOM8XuOPJ8OHfQUoLKydtw5rxCsowzFPbx5b3KBke5C4akQ=="
4016 "version": "0.5.48",
4017 "resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.48.tgz",
4018 "integrity": "sha512-vJitVYnaViQo43xAkL/h3MJ/6wS7YknKEYhYs+N/GrsspYLMPGf9KSuR19tprB2g9KVGS5o67t0v5K8p0RTQCQ=="
4019 4019 },
4020 4020 "node_modules/warframe-riven-info": {
4021 4021 "version": "0.1.2",
Modified package.json +1 -1
@@ -23,7 +23,7 @@
23 23 "mongoose": "^8.11.0",
24 24 "morgan": "^1.10.0",
25 25 "typescript": ">=5.5 <5.6.0",
26 "warframe-public-export-plus": "^0.5.47",
26 "warframe-public-export-plus": "^0.5.48",
27 27 "warframe-riven-info": "^0.1.2",
28 28 "winston": "^3.17.0",
29 29 "winston-daily-rotate-file": "^5.0.0"
Modified src/services/inventoryService.ts +11 -3
@@ -330,11 +330,19 @@ export const addItem = async (
330 330 }
331 331 }
332 332 if (typeName in ExportCustoms) {
333 if (ExportCustoms[typeName].productCategory == "CrewShipWeaponSkins") {
334 return addCrewShipWeaponSkin(inventory, typeName);
333 const meta = ExportCustoms[typeName];
334 let inventoryChanges: IInventoryChanges;
335 if (meta.productCategory == "CrewShipWeaponSkins") {
336 inventoryChanges = addCrewShipWeaponSkin(inventory, typeName);
335 337 } else {
336 return addSkin(inventory, typeName);
338 inventoryChanges = addSkin(inventory, typeName);
337 339 }
340 if (meta.additionalItems) {
341 for (const item of meta.additionalItems) {
342 combineInventoryChanges(inventoryChanges, await addItem(inventory, item));
343 }
344 }
345 return inventoryChanges;
338 346 }
339 347 if (typeName in ExportFlavour) {
340 348 return addCustomization(inventory, typeName);