diff --git a/Facepunch.Steamworks/Structs/InventoryDef.cs b/Facepunch.Steamworks/Structs/InventoryDef.cs index 208cf64..4e58754 100644 --- a/Facepunch.Steamworks/Structs/InventoryDef.cs +++ b/Facepunch.Steamworks/Structs/InventoryDef.cs @@ -46,6 +46,12 @@ public InventoryDef( InventoryDefId defId ) /// public string Type => GetProperty( "type" ); + /// + /// Returns true if this is an item that generates an item, rather + /// than something that is actual an item + /// + public bool IsGenerator => Type == "generator"; + /// /// Shortcut to call GetProperty( "exchange" ) ///