landsandboat/scripts/items/congestus_cell.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
453 B
Lua

-----------------------------------
-- Congestus Cell
-- ID 5378
-- Removes VIT Down effect
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, param, caster)
return xi.salvage.onCellItemCheck(target, xi.effect.DEBILITATION, 0x004)
end
itemObject.onItemUse = function(target)
return xi.salvage.onCellItemUse(target, xi.effect.DEBILITATION, 0x004, 13)
end
return itemObject