fix: exception text missing info abt Inventory
This commit is contained in:
@@ -190,16 +190,16 @@ class Dumper
|
|||||||
|
|
||||||
string itemId = row.Key.Text;
|
string itemId = row.Key.Text;
|
||||||
|
|
||||||
if (!TryGetProp(props, "Type", out EInventoryItemType itemType)
|
if (!TryGetProp(props, "Type", out EInventoryItemType itemType)
|
||||||
|| !TryGetProp(props, "UIData", out FStructFallback uiDataFb)
|
|| !TryGetProp(props, "UIData", out FStructFallback uiDataFb)
|
||||||
|| !TryGetProp(props, "Role", out EPlayerRole role)
|
|| !TryGetProp(props, "Role", out EPlayerRole role)
|
||||||
|| !TryGetProp(props, "Inventory", out bool isInventory))
|
|| !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<UIDataStruct>();
|
UIDataStruct uiData = uiDataFb.MapToStruct<UIDataStruct>();
|
||||||
|
|
||||||
// ignore powers, slasher and challenge related items
|
// 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);
|
_log.Verbose("Ignoring invalid item ({0})", itemId);
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user