2021-01-18 12:51:02 -05:00
|
|
|
-----------------------------------
|
2020-07-19 02:46:49 -04:00
|
|
|
-- ID: 17954
|
|
|
|
|
-- Item: jolt_axe
|
|
|
|
|
-- Item Effect: Attack +3
|
|
|
|
|
-- Duration: 30 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 = {}
|
2020-07-19 02:46:49 -04:00
|
|
|
|
2026-05-25 20:42:11 -06:00
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
2025-12-08 18:28:29 -08:00
|
|
|
if target:getStatusEffectBySource(xi.effect.ATTACK_BOOST, xi.effectSourceType.EQUIPPED_ITEM, xi.item.JOLT_AXE) ~= nil then
|
|
|
|
|
target:delStatusEffect(xi.effect.ATTACK_BOOST, nil, xi.effectSourceType.EQUIPPED_ITEM, xi.item.JOLT_AXE)
|
2020-07-19 02:46:49 -04:00
|
|
|
end
|
2022-11-22 14:59:19 -05:00
|
|
|
|
2020-07-19 02:46:49 -04: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.JOLT_AXE) then
|
2026-02-19 22:48:02 -07:00
|
|
|
target:addStatusEffect(xi.effect.ATTACK_BOOST, { duration = 1800, origin = user, sourceType = xi.effectSourceType.EQUIPPED_ITEM, sourceTypeParam = xi.item.JOLT_AXE })
|
2024-11-13 10:45:49 -05:00
|
|
|
end
|
2020-07-19 02:46:49 -04:00
|
|
|
end
|
2021-01-17 11:55:03 -05:00
|
|
|
|
2025-12-08 18:28:29 -08:00
|
|
|
itemObject.onEffectGain = function(target, effect)
|
|
|
|
|
effect:addMod(xi.mod.ATT, 3)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
itemObject.onEffectLose = function(target, effect)
|
|
|
|
|
end
|
|
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
return itemObject
|