landsandboat/scripts/items/ice_cluster.lua

17 lines
411 B
Lua

-----------------------------------
-- ID: 4105
-- Ice Cluster
-- Turn into a stack of ice 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.ICE_CRYSTAL, 12 } })
end
return itemObject