landsandboat/scripts/items/black_drop.lua

23 lines
546 B
Lua
Raw Permalink Normal View History

2021-01-18 12:51:02 -05:00
-----------------------------------
2016-01-16 01:26:33 -05:00
-- ID: 4265
-- Item: Black Drop
-- Transports the user to their Home Point
2021-01-18 12:51:02 -05:00
-----------------------------------
---@type TItem
local itemObject = {}
2016-01-16 01:26:33 -05:00
itemObject.onItemCheck = function(target, item, caster)
if target:hasStatusEffect(xi.effect.MEDICINE) then
2021-04-01 15:10:15 -04:00
return xi.msg.basic.ITEM_NO_USE_MEDICATED
2017-01-04 20:52:03 -05:00
end
return 0
end
2016-01-16 01:26:33 -05:00
2026-02-19 22:48:02 -07:00
itemObject.onItemUse = function(target, user)
target:addStatusEffect(xi.effect.MEDICINE, { duration = 3600, origin = user })
target:warp()
end
2021-01-17 11:55:03 -05:00
return itemObject