Lua API

Enchantment module

Handle item enchantments.

Usage

local Enchantment = ELONA.require("core.Enchantment")

Functions

add (id, power) Add an enchantment to the item.

Functions

# add (id, power)

Add an enchantment to the item.

Parameters:
  • id : (num) The enchantment ID.
  • power : (num) The enchantment power.