返回提交历史
Modified
src/services/inventoryService.ts
+5
-0
XFEstudio/XFESpaceNinjaServer
chore: handle raw add items of DoomSwordCYUmbra (#4130)
Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/4130 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
1782b35f
代码差异
1 个文件
+5
-0
@@ -971,6 +971,11 @@ export const addItem = async (
971
971
if (quantity != 1) {
972
972
throw new Error(`unexpected acquisition quantity of Suits: got ${quantity}, expected 1`);
973
973
}
974
if (typeName == "/Lotus/Powersuits/Excalibur/DoomSwordCYUmbra") {
975
const inventoryChanges: IInventoryChanges = {};
976
addSpecialItem(inventory, typeName, inventoryChanges);
977
return inventoryChanges;
978
}
974
979
return {
975
980
...(await addPowerSuit(
976
981
inventory,