landsandboat/scripts/items/navy_axe.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

18 lines
354 B
Lua

-----------------------------------
-- ID: 17957
-- Item: Navy Axe
-- Item Effect: TP +1000
-- Duration: Instant
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, param, caster)
return 0
end
itemObject.onItemUse = function(target)
target:addTP(1000)
end
return itemObject