rename to reflect type definition Annotate xi.itemUtils.foodOnItemCheck Make TItemFood functions optional, since the definition does not include types
17 lines
403 B
Lua
17 lines
403 B
Lua
-----------------------------------
|
|
-- ID: 28540
|
|
-- Warp Ring
|
|
-- Transports the user to their Home Point
|
|
-----------------------------------
|
|
---@type TItem
|
|
local itemObject = {}
|
|
|
|
itemObject.onItemCheck = function(target, item, param, caster)
|
|
return 0
|
|
end
|
|
|
|
itemObject.onItemUse = function(target)
|
|
target:addStatusEffectEx(xi.effect.TELEPORT, 0, xi.teleport.id.WARP, 0, 3)
|
|
end
|
|
|
|
return itemObject
|