landsandboat/scripts/items/echad_ring.lua

32 lines
749 B
Lua
Raw Permalink Normal View History

2021-01-18 12:51:02 -05:00
-----------------------------------
-- ID: 27556
-- Item: echad ring
-- Experience point bonus
2021-01-18 12:51:02 -05:00
-----------------------------------
-- Bonus: +150%
-- Duration: 720 min
-- Max bonus: 30000 exp
2021-01-18 12:51:02 -05:00
-----------------------------------
---@type TItem
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
local result = 0
if target:hasStatusEffect(xi.effect.DEDICATION) then
result = xi.msg.basic.ITEM_UNABLE_TO_USE_2
end
return result
end
itemObject.onItemUse = function(target)
local effect = xi.effect.DEDICATION
local power = 150
local duration = 43200
local subpower = 30000
xi.itemUtils.addItemExpEffect(target, effect, power, duration, subpower)
end
2021-01-17 11:55:03 -05:00
return itemObject