From 2395d19665f559b3e169ce12095e50d2bf9e3611 Mon Sep 17 00:00:00 2001 From: neru Date: Thu, 18 Jun 2026 18:06:55 -0300 Subject: [PATCH] fix: exception text missing info abt Inventory --- src/dumper/dumper.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/dumper/dumper.cs b/src/dumper/dumper.cs index 6e659fc..d9bebf1 100644 --- a/src/dumper/dumper.cs +++ b/src/dumper/dumper.cs @@ -190,16 +190,16 @@ class Dumper string itemId = row.Key.Text; - if (!TryGetProp(props, "Type", out EInventoryItemType itemType) - || !TryGetProp(props, "UIData", out FStructFallback uiDataFb) + if (!TryGetProp(props, "Type", out EInventoryItemType itemType) + || !TryGetProp(props, "UIData", out FStructFallback uiDataFb) || !TryGetProp(props, "Role", out EPlayerRole role) || !TryGetProp(props, "Inventory", out bool isInventory)) - throw new KeyNotFoundException("Type, UIData or Role was not found."); + throw new KeyNotFoundException("Type, UIData, Role or Inventory was not found."); UIDataStruct uiData = uiDataFb.MapToStruct(); // ignore powers, slasher and challenge related items - if (!isInventory || itemType != EInventoryItemType.Item || role != EPlayerRole.VE_Camper) + if (!isInventory || itemType != EInventoryItemType.Item || role != EPlayerRole.VE_Camper) { _log.Verbose("Ignoring invalid item ({0})", itemId); continue;