landsandboat/scripts/items/lightning_cluster.lua

17 lines
427 B
Lua

-----------------------------------
-- ID: 4108
-- Lighting Cluster
-- Turn into a stack of lighting 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.LIGHTNING_CRYSTAL, 12 } })
end
return itemObject