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

21 lines
510 B
Lua

-----------------------------------
-- ID: 16273
-- Chocobo Pullus Torque
-- Enchantment: 60Min, Costume - Mandragora
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, param, caster)
if not target:canUseMisc(xi.zoneMisc.COSTUME) then
return xi.msg.basic.CANT_BE_USED_IN_AREA
end
return 0
end
itemObject.onItemUse = function(target)
target:addStatusEffect(xi.effect.COSTUME, 1997, 0, 3600)
end
return itemObject