2022-02-12 15:33:51 -05:00
|
|
|
-----------------------------------
|
|
|
|
|
-- ID: 28568
|
|
|
|
|
-- Item: Resolution Ring
|
|
|
|
|
-- Experience point bonus
|
|
|
|
|
-----------------------------------
|
|
|
|
|
-- Bonus: +50%
|
|
|
|
|
-- Duration: 720 min
|
|
|
|
|
-- Max bonus: 30000 exp
|
|
|
|
|
-----------------------------------
|
2024-08-24 12:32:37 -04:00
|
|
|
---@type TItem
|
2022-10-06 17:25:46 +03:00
|
|
|
local itemObject = {}
|
2022-02-12 15:33:51 -05:00
|
|
|
|
2026-05-25 20:42:11 -06:00
|
|
|
itemObject.onItemCheck = function(target, item, caster)
|
2022-02-12 15:33:51 -05:00
|
|
|
local result = 0
|
|
|
|
|
if target:hasStatusEffect(xi.effect.DEDICATION) then
|
2022-08-30 12:03:02 -07:00
|
|
|
result = xi.msg.basic.ITEM_UNABLE_TO_USE_2
|
2022-02-12 15:33:51 -05:00
|
|
|
end
|
2022-11-22 15:16:29 -05:00
|
|
|
|
2022-02-12 15:33:51 -05:00
|
|
|
return result
|
|
|
|
|
end
|
|
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
itemObject.onItemUse = function(target)
|
2022-08-30 12:03:02 -07:00
|
|
|
local effect = xi.effect.DEDICATION
|
|
|
|
|
local power = 50
|
|
|
|
|
local duration = 43200
|
|
|
|
|
local subpower = 30000
|
|
|
|
|
|
2023-08-30 16:11:28 -04:00
|
|
|
xi.itemUtils.addItemExpEffect(target, effect, power, duration, subpower)
|
2022-02-12 15:33:51 -05:00
|
|
|
end
|
|
|
|
|
|
2022-10-06 17:25:46 +03:00
|
|
|
return itemObject
|