XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet

SpaceNinjaServer

A simple server for a small space ninja game

公开
关注 0 Fork 1 Star 0
返回提交历史

XFEstudio/SpaceNinjaServer

chore: handle addItem of GhoulFragmentRewards (#2625)

Closes #2624 Reviewed-on: https://onlyg.it/OpenWF/SpaceNinjaServer/pulls/2625 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>

6d727c50
Sainan <63328889+Sainan@users.noreply.github.com>
提交于

代码差异

2 个文件 +27 -1
Modified src/services/inventoryService.ts +26 -0
@@ -847,6 +847,32 @@ export const addItem = async (
847 847 return addMotorcycle(inventory, typeName);
848 848 }
849 849 break;
850 case "Lore":
851 if (typeName == "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentRewards") {
852 const fragmentType = getRandomElement([
853 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentA",
854 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentB",
855 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentC",
856 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentD",
857 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentE",
858 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentF",
859 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentG",
860 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentH",
861 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentI",
862 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentJ",
863 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentK",
864 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentL",
865 "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentM"
866 ])!;
867 addLoreFragmentScans(inventory, [
868 {
869 Progress: 1,
870 Region: "",
871 ItemType: fragmentType
872 }
873 ]);
874 }
875 break;
850 876 }
851 877 break;
852 878 }
Modified src/types/inventoryTypes/inventoryTypes.ts +1 -1
@@ -730,7 +730,7 @@ export enum UpgradeType {
730 730
731 731 export interface ILoreFragmentScan {
732 732 Progress: number;
733 Region?: string;
733 Region: string;
734 734 ItemType: string;
735 735 }
736 736