API reference Obsidian.API.Loot
LootPool class
A set of weighted entries rolled a number of times, like vanilla's LootPool.
public sealed class LootPool
In Obsidian.API.
Constructors
public LootPool();Properties
BonusRolls
public INumberProvider BonusRolls { get; init; }Extra rolls per point of luck.
Conditions
public ImmutableArray<ILootCondition> Conditions { get; init; }The pool is skipped unless all of these pass.
public required ImmutableArray<LootPoolEntry> Entries { get; init; }Functions
public ImmutableArray<LootFunction> Functions { get; init; }Applied to every stack the pool generates, after the entry's own functions.
public required INumberProvider Rolls { get; init; }Methods
public void AddRandomItems(Action<ItemStack> output, LootContext context);