Table of Contents

Property Inventory

Namespace
GrindFest
Assembly
GrindFest.dll

Inventory

Gets all items in the hero's inventory as an enumerable collection.

public static IEnumerable<ItemBehaviour> Inventory { get; }

Property Value

IEnumerable<ItemBehaviour>

Remarks

The Inventory property provides access to all items currently held in the hero's inventory.

List all items in the inventory:
foreach (var item in Hero.Inventory)
{
    Hero.Say($"I have a {item.name}");
}
You can use LINQ methods to query and filter items based on various criteria. Find all health potions in the inventory:
var healthPotions = Inventory.Where(item => item.ResourcePotion?.ResourceType == ResourceType.Health);