Class LootTableEntry
One item line in a LootTableTemplate: what may drop, how likely it is, and how much of it.
[Serializable]
public class LootTableEntry
- Inheritance
-
LootTableEntry
- Inherited Members
Remarks
Entries roll independently rather than competing for a single weighted slot. A weighted pick forces every table to be a "choose exactly one" table, which cannot express the ordinary case of a creature that always drops its hide and sometimes also drops a tooth. Independent rolls express both, and MaximumItemDrops is what bounds the result.
Fields
DropChance
Probability in the range 0-1 that this entry produces a stack. 1 is a guaranteed drop.
[Tooltip("Chance this entry drops at all. 1 = always.")]
[Range(0, 1)]
public float DropChance
Field Value
ItemTemplate
The item that may drop. An unassigned template makes the entry inert.
[Tooltip("Item that may drop from this entry.")]
public BaseItemTemplate ItemTemplate
Field Value
MaximumAmount
Largest stack size produced when the entry drops.
[Tooltip("Maximum stack size when this entry drops. Clamped to the item's MaxStackSize.")]
[Min(1)]
public int MaximumAmount
Field Value
MinimumAmount
Smallest stack size produced when the entry drops.
[Tooltip("Minimum stack size when this entry drops.")]
[Min(1)]
public int MinimumAmount
Field Value
Methods
Validate()
Repairs inspector values that cannot produce a sane roll.
public void Validate()