rename to reflect type definition Annotate xi.itemUtils.foodOnItemCheck Make TItemFood functions optional, since the definition does not include types
17 lines
427 B
Lua
17 lines
427 B
Lua
-----------------------------------
|
|
-- ID: 5498
|
|
-- Casters Die
|
|
-- Teaches the job ability Casters Roll
|
|
-----------------------------------
|
|
---@type TItem
|
|
local itemObject = {}
|
|
|
|
itemObject.onItemCheck = function(target, item, param, caster)
|
|
return target:canLearnAbility(xi.jobAbility.CASTERS_ROLL)
|
|
end
|
|
|
|
itemObject.onItemUse = function(target)
|
|
target:addLearnedAbility(xi.jobAbility.CASTERS_ROLL)
|
|
end
|
|
|
|
return itemObject
|