landsandboat/scripts/items/escritorio.lua
claywar 6e4fa2af25
[type] Add type annotations to Item scripts
rename to reflect type definition

Annotate xi.itemUtils.foodOnItemCheck

Make TItemFood functions optional, since the definition does not include types
2024-08-24 18:25:26 -04:00

17 lines
409 B
Lua

-----------------------------------
-- ID: 20953
-- Escritorio
-- Dispense: Cone Calamary
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, param, caster)
return xi.itemUtils.itemBoxOnItemCheck(target)
end
itemObject.onItemUse = function(target)
npcUtil.giveItem(target, { { xi.item.CONE_CALAMARY, 1 } })
end
return itemObject