From de4c2ab9f34be21d4f9d56688f2628c7ba813464 Mon Sep 17 00:00:00 2001 From: Liza Carvelli Date: Sat, 9 Nov 2024 12:14:58 +0100 Subject: [PATCH] Add collectables to discardable items --- ARDiscard/GameData/ItemCache.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ARDiscard/GameData/ItemCache.cs b/ARDiscard/GameData/ItemCache.cs index 55e5f01..cbfab68 100644 --- a/ARDiscard/GameData/ItemCache.cs +++ b/ARDiscard/GameData/ItemCache.cs @@ -62,6 +62,14 @@ internal sealed class ItemCache cachedItemInfo.CanBeBoughtFromCalamitySalvager = true; } + foreach (var collectableItem in dataManager.GetExcelSheet()!) + { + if (collectableItem.RowId == 0) + continue; + + listManager.AddToInternalWhitelist(collectableItem.Item.Row); + } + // only look at msq + regional side quests foreach (var quest in dataManager.GetExcelSheet()!.Where(x => x.JournalGenre.Value?.JournalCategory.Value?.JournalSection.Row is 0 or 1 or 3)) {