landsandboat/scripts/items/blacksmiths_belt.lua

23 lines
592 B
Lua

-----------------------------------
-- ID: 15445
-- Item: Blacksmith's Belt
-- Enchantment: Synthesis image support
-- Duration: 8Min
-- Smithing Skill +3
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
if target:hasStatusEffect(xi.effect.SMITHING_IMAGERY) then
return xi.msg.basic.ITEM_UNABLE_TO_USE
end
return 0
end
itemObject.onItemUse = function(target, user)
target:addStatusEffect(xi.effect.SMITHING_IMAGERY, { power = 3, duration = 480, origin = user })
end
return itemObject