landsandboat/scripts/items/light_cluster.lua

17 lines
417 B
Lua

-----------------------------------
-- ID: 4110
-- Light Cluster
-- Turn into a stack of light crystals
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end
itemObject.onItemUse = function(target)
npcUtil.giveItem(target, { { xi.item.LIGHT_CRYSTAL, 12 } })
end
return itemObject