landsandboat/scripts/items/light_cluster.lua

18 lines
417 B
Lua
Raw Permalink Normal View History

2021-01-18 12:51:02 -05:00
-----------------------------------
-- ID: 4110
-- Light Cluster
-- Turn into a stack of light crystals
2021-01-18 12:51:02 -05:00
-----------------------------------
---@type TItem
local itemObject = {}
2016-01-16 01:26:33 -05:00
itemObject.onItemCheck = function(target, item, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end
2016-01-16 01:26:33 -05:00
itemObject.onItemUse = function(target)
npcUtil.giveItem(target, { { xi.item.LIGHT_CRYSTAL, 12 } })
end
2021-01-17 11:55:03 -05:00
return itemObject