API reference Obsidian.API.Loot.Conditions
ILootCondition interface
A predicate that gates a pool, entry or function, like vanilla's LootItemCondition.
public interface ILootCondition
In Obsidian.API.
Methods
bool Test(LootContext context);TestAll(ImmutableArray<ILootCondition>, LootContext)
static bool TestAll(ImmutableArray<ILootCondition> conditions, LootContext context);Tests every condition in order and stops at the first that fails, as vanilla does. Later conditions draw no random numbers once one fails.