返回提交历史
Modified
package-lock.json
+4
-4
Modified
package.json
+1
-1
Modified
src/services/inventoryService.ts
+25
-1
XFEstudio/XFESpaceNinjaServer
fix: put house version railjack components into the salvage array (#1654)
Fixes #1645 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1654 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
64fbdf60
代码差异
3 个文件
+30
-6
@@ -18,7 +18,7 @@
18
18
"morgan": "^1.10.0",
19
19
"ncp": "^2.0.0",
20
20
"typescript": "^5.5",
21
"warframe-public-export-plus": "^0.5.54",
21
"warframe-public-export-plus": "^0.5.55",
22
22
"warframe-riven-info": "^0.1.2",
23
23
"winston": "^3.17.0",
24
24
"winston-daily-rotate-file": "^5.0.0"
@@ -3789,9 +3789,9 @@
3789
3789
}
3790
3790
},
3791
3791
"node_modules/warframe-public-export-plus": {
3792
"version": "0.5.54",
3793
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.54.tgz",
3794
"integrity": "sha512-27r6qLErr3P8UVDiEzhDAs/BjdAS3vI2CQ58jSI+LClDlj6QL+y1jQe8va/npl3Ft2K8PywLkZ8Yso0j9YzvOA=="
3792
"version": "0.5.55",
3793
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.55.tgz",
3794
"integrity": "sha512-Gnd4FCBVuxm2xWGfu8xxxqPIPSnnTqiEWlpP3rsFpVlQs09RNFnW2PEX9rCZt0f3SvHBv5ssDDrFlzgBHS1yrA=="
3795
3795
},
3796
3796
"node_modules/warframe-riven-info": {
3797
3797
"version": "0.1.2",
@@ -25,7 +25,7 @@
25
25
"morgan": "^1.10.0",
26
26
"ncp": "^2.0.0",
27
27
"typescript": "^5.5",
28
"warframe-public-export-plus": "^0.5.54",
28
"warframe-public-export-plus": "^0.5.55",
29
29
"warframe-riven-info": "^0.1.2",
30
30
"winston": "^3.17.0",
31
31
"winston-daily-rotate-file": "^5.0.0"
@@ -408,8 +408,32 @@ export const addItem = async (
408
408
const meta = ExportCustoms[typeName];
409
409
let inventoryChanges: IInventoryChanges;
410
410
if (meta.productCategory == "CrewShipWeaponSkins") {
411
inventoryChanges = addCrewShipWeaponSkin(inventory, typeName);
411
if (meta.subroutines || meta.randomisedUpgrades) {
412
// House versions need to be identified to get stats so put them into raw salvage first.
413
const rawSalvageChanges = [
414
{
415
ItemType: typeName,
416
ItemCount: quantity
417
}
418
];
419
addCrewShipRawSalvage(inventory, rawSalvageChanges);
420
inventoryChanges = { CrewShipRawSalvage: rawSalvageChanges };
421
} else {
422
// Sigma versions can be added directly.
423
if (quantity != 1) {
424
throw new Error(
425
`unexpected acquisition quantity of CrewShipWeaponSkin: got ${quantity}, expected 1`
426
);
427
}
428
inventoryChanges = {
429
...addCrewShipWeaponSkin(inventory, typeName),
430
...occupySlot(inventory, InventorySlot.RJ_COMPONENT_AND_ARMAMENTS, premiumPurchase)
431
};
432
}
412
433
} else {
434
if (quantity != 1) {
435
throw new Error(`unexpected acquisition quantity of WeaponSkins: got ${quantity}, expected 1`);
436
}
413
437
inventoryChanges = addSkin(inventory, typeName);
414
438
}
415
439
if (meta.additionalItems) {