Enchantment
Scripting with the Enchantment struct.
The Enchantment
struct is a data container that stores enchantment data.
Fields & Properties
Name
Description
Type
Access
itemID
The ID of the item that this enchantment belongs to.
int
public
enchantmentType
Controls how this enchantment affects the stats of an enchantable item.
Enchantment.EnchantmentType
public
multiplier
The stat multiplier. Relevant when the enchantment type is set to Multiplier.
float
public
cost
The amount this enchantment will cost.
Currency
public
EnchantmentType
How this enchantment affects the stats of an enchantable item.
Name
Description
MergeStats
Merges the stats of the item with the target enchantable item.
Multiplier
Multiplies the stats of the target enchantable item. The item's own stats are ignored.
Creating Enchantments
Enchantment enchantment = new Enchantment();
Last updated