Enchantment

✨ Enchantment Struct

Represents item enchantment data.

Namespace: Esper.Inventool.Enchanting Access: public Type: struct Attributes: [Serializable]


📦 Fields

Access
Field
Type
Description

public

itemID

int

The ID of the item that this enchantment belongs to.

public

customObject

UnityEngine.Object

A custom object for any purpose. (Marked [Obsolete] — not recommended for use.)

public

enchantmentType

EnchantmentType

Controls how this enchantment affects the stats of an enchantable item.

public

multiplier

float

The stat multiplier. Relevant when the enchantment type is set to Multiplier.

public

cost

Currency

The amount this enchantment will cost.


🧩 Nested Enum

public enum EnchantmentType

Defines how the enchantment modifies stats.

Name
Description

MergeStats

Merges the stats of the item with the target enchantable item. (Shown in inspector as “Merge Stats”)

Multiplier

Multiplies the stats of the target enchantable item. The item’s own stats are ignored.

Creating Enchantments

Enchantment enchantment = new Enchantment();

Last updated