forked from OpenWF/SpaceNinjaServer
		
	chore: handle addItem of GhoulFragmentRewards (#2625)
Closes #2624 Reviewed-on: OpenWF/SpaceNinjaServer#2625 Co-authored-by: Sainan <63328889+Sainan@users.noreply.github.com> Co-committed-by: Sainan <63328889+Sainan@users.noreply.github.com>
This commit is contained in:
		
							parent
							
								
									bf04755c36
								
							
						
					
					
						commit
						6d727c50f4
					
				@ -847,6 +847,32 @@ export const addItem = async (
 | 
				
			|||||||
                        return addMotorcycle(inventory, typeName);
 | 
					                        return addMotorcycle(inventory, typeName);
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
                    break;
 | 
					                    break;
 | 
				
			||||||
 | 
					                case "Lore":
 | 
				
			||||||
 | 
					                    if (typeName == "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentRewards") {
 | 
				
			||||||
 | 
					                        const fragmentType = getRandomElement([
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentA",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentB",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentC",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentD",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentE",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentF",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentG",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentH",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentI",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentJ",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentK",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentL",
 | 
				
			||||||
 | 
					                            "/Lotus/Types/Lore/Fragments/GrineerGhoulFragments/GhoulFragmentM"
 | 
				
			||||||
 | 
					                        ])!;
 | 
				
			||||||
 | 
					                        addLoreFragmentScans(inventory, [
 | 
				
			||||||
 | 
					                            {
 | 
				
			||||||
 | 
					                                Progress: 1,
 | 
				
			||||||
 | 
					                                Region: "",
 | 
				
			||||||
 | 
					                                ItemType: fragmentType
 | 
				
			||||||
 | 
					                            }
 | 
				
			||||||
 | 
					                        ]);
 | 
				
			||||||
 | 
					                    }
 | 
				
			||||||
 | 
					                    break;
 | 
				
			||||||
            }
 | 
					            }
 | 
				
			||||||
            break;
 | 
					            break;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
				
			|||||||
@ -730,7 +730,7 @@ export enum UpgradeType {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
export interface ILoreFragmentScan {
 | 
					export interface ILoreFragmentScan {
 | 
				
			||||||
    Progress: number;
 | 
					    Progress: number;
 | 
				
			||||||
    Region?: string;
 | 
					    Region: string;
 | 
				
			||||||
    ItemType: string;
 | 
					    ItemType: string;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user