From cf83d2982dfa095214a58ee0a3bf201e32d76a5d Mon Sep 17 00:00:00 2001 From: Sainan <63328889+Sainan@users.noreply.github.com> Date: Thu, 14 Aug 2025 21:59:53 +0200 Subject: [PATCH] chore: handle addItem of GhoulFragmentRewards --- src/services/inventoryService.ts | 26 ++++++++++++++++++++++ src/types/inventoryTypes/inventoryTypes.ts | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/src/services/inventoryService.ts b/src/services/inventoryService.ts index 772ba929..0dd45ef4 100644 --- a/src/services/inventoryService.ts +++ b/src/services/inventoryService.ts @@ -847,6 +847,32 @@ export const addItem = async ( return addMotorcycle(inventory, typeName); } 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; } diff --git a/src/types/inventoryTypes/inventoryTypes.ts b/src/types/inventoryTypes/inventoryTypes.ts index f08e0728..b40c3e20 100644 --- a/src/types/inventoryTypes/inventoryTypes.ts +++ b/src/types/inventoryTypes/inventoryTypes.ts @@ -730,7 +730,7 @@ export enum UpgradeType { export interface ILoreFragmentScan { Progress: number; - Region?: string; + Region: string; ItemType: string; }