Loot Box Drop
🎲 LootBoxDrop Class
Represents a possible drop inside a LootBox
.
Namespace:
Esper.Inventool.Items
Access:public
Type:class
Attributes:[Serializable]
📦 Fields
public
itemStack
ItemStack
The item stack that can drop.
public
dropRate
float
The chance of this item dropping, relative to other drops.
public
minAmount
int
The minimum number of items in the stack when dropped.
public
maxAmount
int
The maximum number of items in the stack when dropped.
public
rangeStart
float
The start of this drop’s probability range. (Calculated internally)
public
rangeEnd
float
The end of this drop’s probability range. (Calculated internally)
🧰 Methods
public
GetRandomAmount()
int
Gets a random amount between minAmount
and maxAmount
.
public
CreateItemStack()
ItemStack
Creates a new item stack with a randomized amount.
Last updated