返回提交历史
Modified
package-lock.json
+4
-4
Modified
package.json
+1
-1
Modified
src/services/inventoryService.ts
+21
-4
XFEstudio/XFESpaceNinjaServer
fix: put acquired house version railjack armaments into raw salvage (#1685)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1685 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
9940024a
代码差异
3 个文件
+26
-9
@@ -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.55",
21
"warframe-public-export-plus": "^0.5.56",
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.55",
3793
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.55.tgz",
3794
"integrity": "sha512-Gnd4FCBVuxm2xWGfu8xxxqPIPSnnTqiEWlpP3rsFpVlQs09RNFnW2PEX9rCZt0f3SvHBv5ssDDrFlzgBHS1yrA=="
3792
"version": "0.5.56",
3793
"resolved": "https://registry.npmjs.org/warframe-public-export-plus/-/warframe-public-export-plus-0.5.56.tgz",
3794
"integrity": "sha512-px+J7tUm6fkSzwKkvL73ySQReDq9oM1UrHSLM3vbYGBvELM892iBgPYG45okIhScCSdwmmXTiWZTf4x/I4qiNQ=="
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.55",
28
"warframe-public-export-plus": "^0.5.56",
29
29
"warframe-riven-info": "^0.1.2",
30
30
"winston": "^3.17.0",
31
31
"winston-daily-rotate-file": "^5.0.0"
@@ -539,10 +539,27 @@ export const addItem = async (
539
539
}
540
540
}
541
541
if (typeName in ExportRailjackWeapons) {
542
return {
543
...addEquipment(inventory, ExportRailjackWeapons[typeName].productCategory, typeName),
544
...occupySlot(inventory, InventorySlot.RJ_COMPONENT_AND_ARMAMENTS, premiumPurchase)
545
};
542
const meta = ExportRailjackWeapons[typeName];
543
if (meta.defaultUpgrades?.length) {
544
// House versions need to be identified to get stats so put them into raw salvage first.
545
const rawSalvageChanges = [
546
{
547
ItemType: typeName,
548
ItemCount: quantity
549
}
550
];
551
addCrewShipRawSalvage(inventory, rawSalvageChanges);
552
return { CrewShipRawSalvage: rawSalvageChanges };
553
} else {
554
// Sigma versions can be added directly.
555
if (quantity != 1) {
556
throw new Error(`unexpected acquisition quantity of CrewShipWeapon: got ${quantity}, expected 1`);
557
}
558
return {
559
...addEquipment(inventory, meta.productCategory, typeName),
560
...occupySlot(inventory, InventorySlot.RJ_COMPONENT_AND_ARMAMENTS, premiumPurchase)
561
};
562
}
546
563
}
547
564
if (typeName in ExportMisc.creditBundles) {
548
565
const creditsTotal = ExportMisc.creditBundles[typeName] * quantity;