Class ItemDropData
Represents data for an item drop in the game.
public class ItemDropData : IItem, IItemDroppable, IData
- Inheritance
-
ItemDropData
- Implements
- Inherited Members
- Extension Methods
Constructors
ItemDropData()
public ItemDropData()
ItemDropData(ItemDropData)
public ItemDropData(ItemDropData itemDropData)
Parameters
itemDropData
ItemDropData
ItemDropData(int, string, RangeInt, float, float, float)
public ItemDropData(int itemId, string name, RangeInt amount, float chance, float chanceScaling = 1, float amountScaling = 1)
Parameters
Properties
Amount
Gets or sets the amount of items to drop.
public RangeInt? Amount { get; set; }
Property Value
AmountScaling
public float AmountScaling { get; set; }
Property Value
Chance
Gets or sets the chance of dropping the item.
public float Chance { get; set; }
Property Value
ChanceScaling
public float ChanceScaling { get; set; }
Property Value
IsPool
Gets a value indicating whether this item droppable is a pool of items.
[JsonIgnore]
public bool IsPool { get; }
Property Value
IsTemplate
Gets or sets the item template for the item drop.
[JsonIgnore]
public bool IsTemplate { get; }
Property Value
ItemId
Gets or sets the unique identifier for the item.
public int ItemId { get; set; }
Property Value
ItemPool
public List<ItemDropData> ItemPool { get; set; }
Property Value
Name
Gets or sets the name of the item.
public string Name { get; set; }
Property Value
PoolCompletionMode
Gets or sets the completion mode for the item pool.
public LootCompletionMode PoolCompletionMode { get; set; }
Property Value
PoolRollMode
Gets or sets the loot roll mode for the item pool.
public LootRollMode PoolRollMode { get; set; }
Property Value
PoolSelectionMode
Gets or sets the selection mode for the item pool.
public LootSelectionMode PoolSelectionMode { get; set; }
Property Value
PoolShuffleMode
Gets or sets the shuffle mode for the item pool.
public LootShuffleMode PoolShuffleMode { get; set; }
Property Value
Template
Gets or sets the template for the item drop.
public string? Template { get; set; }
Property Value
TemplateLoaded
[JsonIgnore]
public bool TemplateLoaded { get; set; }
Property Value
Methods
Merge(ItemDropData)
Merges the properties of another ItemDropData instance into this instance.
public void Merge(ItemDropData from)
Parameters
from
ItemDropDataThe ItemDropData instance to merge from.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.