Skip to main content

Enchantment

class SoftKitty.InventoryEngine.Enchantment

Properties

public int uid

The unique id of this Enchantment.


public string name

The display name of this Enchantment.


public string prefixes

The prefixes string of this Enchantment, the prefixes string will be displayed in the front of the Item name.


public int prefixesPriority

Only one prefixes string with highest priority will be displayed if an Item has multiple enchantments.


public string suffixes

The suffixes string of this Enchantment, the suffixes string will be displayed in the end of the Item name.


public int suffixesPriority

Only one suffixes string with highest priority will be displayed if an Item has multiple enchantments.


public List<AttributeData> attributes=new List<AttributeData>()

The attributes list this enchantment will add to the Item.


Methods

public string GetDescription()

Get the description string of this enchantment, will looks like Deadly Attack +10 Speed +5


public Enchantment Copy()

return a copy of the data.