2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2018-09-27 22:30:57 -05:00
|
|
|
-- ID: 14681
|
|
|
|
|
-- Item: Getsul Ring
|
|
|
|
|
-- Item Effect: +20% HP
|
|
|
|
|
-- Duration 3 Minutes
|
2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2024-08-24 12:32:37 -04:00
|
|
|
---@type TItem
|
2022-10-06 17:25:46 +03:00
|
|
|
local itemObject = {}
|
2018-09-27 22:30:57 -05:00
|
|
|
|
2026-05-25 20:42:11 -06:00
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
2024-11-13 10:45:49 -05:00
|
|
|
if target:getStatusEffectBySource(xi.effect.ENCHANTMENT, xi.effectSourceType.EQUIPPED_ITEM, xi.item.GETSUL_RING) ~= nil then
|
|
|
|
|
target:delStatusEffect(xi.effect.ENCHANTMENT, nil, xi.effectSourceType.EQUIPPED_ITEM, xi.item.GETSUL_RING)
|
2018-09-27 22:30:57 -05:00
|
|
|
end
|
2022-11-22 14:56:22 -05:00
|
|
|
|
2018-09-27 22:30:57 -05:00
|
|
|
return 0
|
|
|
|
|
end
|
|
|
|
|
|
2026-02-19 22:48:02 -07:00
|
|
|
itemObject.onItemUse = function(target, user)
|
2024-11-13 10:45:49 -05:00
|
|
|
if target:hasEquipped(xi.item.GETSUL_RING) then
|
2026-02-19 22:48:02 -07:00
|
|
|
target:addStatusEffect(xi.effect.ENCHANTMENT, { duration = 180, origin = user, sourceType = xi.effectSourceType.EQUIPPED_ITEM, sourceTypeParam = xi.item.GETSUL_RING })
|
2024-11-13 10:45:49 -05:00
|
|
|
end
|
2018-09-27 22:30:57 -05:00
|
|
|
end
|
|
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
itemObject.onEffectGain = function(target, effect)
|
2025-11-27 12:29:39 -05:00
|
|
|
effect:addMod(xi.mod.HPP, 20)
|
2018-09-27 22:30:57 -05:00
|
|
|
end
|
|
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
itemObject.onEffectLose = function(target, effect)
|
2020-03-19 18:41:42 -07:00
|
|
|
end
|
2021-01-17 11:55:03 -05:00
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
return itemObject
|