返回提交历史
Modified
src/services/inventoryService.ts
+0
-11
XFEstudio/XFESpaceNinjaServer
chore: remove /Lotus/Types/Recipes/ from path-based logic (#1475)
Both recipes & MiscItems (recipe components) start with this. Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/1475 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
5f6b2330
代码差异
1 个文件
+0
-11
@@ -673,17 +673,6 @@ export const addItem = async (
673
673
Horses: [inventory.Horses[horseIndex - 1].toJSON<IEquipmentClient>()]
674
674
};
675
675
}
676
case "Recipes": {
677
inventory.MiscItems.push({ ItemType: typeName, ItemCount: quantity });
678
return {
679
MiscItems: [
680
{
681
ItemType: typeName,
682
ItemCount: quantity
683
}
684
]
685
};
686
}
687
676
case "Vehicles":
688
677
if (typeName == "/Lotus/Types/Vehicles/Motorcycle/MotorcyclePowerSuit") {
689
678
return addMotorcycle(inventory, typeName);