Table of Contents

Class ItemDropData

Namespace
RisingV.Core.Items.Drops
Assembly
RisingV.Core.LootEngine.dll

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

itemId int
name string
amount RangeInt
chance float
chanceScaling float
amountScaling float

Properties

Amount

Gets or sets the amount of items to drop.

public RangeInt? Amount { get; set; }

Property Value

RangeInt

AmountScaling

public float AmountScaling { get; set; }

Property Value

float

Chance

Gets or sets the chance of dropping the item.

public float Chance { get; set; }

Property Value

float

ChanceScaling

public float ChanceScaling { get; set; }

Property Value

float

IsPool

Gets a value indicating whether this item droppable is a pool of items.

[JsonIgnore]
public bool IsPool { get; }

Property Value

bool

IsTemplate

Gets or sets the item template for the item drop.

[JsonIgnore]
public bool IsTemplate { get; }

Property Value

bool

ItemId

Gets or sets the unique identifier for the item.

public int ItemId { get; set; }

Property Value

int

ItemPool

public List<ItemDropData> ItemPool { get; set; }

Property Value

List<ItemDropData>

Name

Gets or sets the name of the item.

public string Name { get; set; }

Property Value

string

PoolCompletionMode

Gets or sets the completion mode for the item pool.

public LootCompletionMode PoolCompletionMode { get; set; }

Property Value

LootCompletionMode

PoolRollMode

Gets or sets the loot roll mode for the item pool.

public LootRollMode PoolRollMode { get; set; }

Property Value

LootRollMode

PoolSelectionMode

Gets or sets the selection mode for the item pool.

public LootSelectionMode PoolSelectionMode { get; set; }

Property Value

LootSelectionMode

PoolShuffleMode

Gets or sets the shuffle mode for the item pool.

public LootShuffleMode PoolShuffleMode { get; set; }

Property Value

LootShuffleMode

Template

Gets or sets the template for the item drop.

public string? Template { get; set; }

Property Value

string

TemplateLoaded

[JsonIgnore]
public bool TemplateLoaded { get; set; }

Property Value

bool

Methods

Merge(ItemDropData)

Merges the properties of another ItemDropData instance into this instance.

public void Merge(ItemDropData from)

Parameters

from ItemDropData

The 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.