landsandboat/scripts/items/choco-scroll.lua

29 lines
807 B
Lua
Raw Permalink Normal View History

2021-01-18 12:51:02 -05:00
-----------------------------------
-- ID: 5917
-- Item: Choco-scroll
-- Food Effect: 3 Min, All Races
2021-01-18 12:51:02 -05:00
-----------------------------------
-- Mind 1
-- Base speed 10% or +5
2021-01-18 12:51:02 -05:00
-----------------------------------
---@type TItemFood
local itemObject = {}
itemObject.onItemCheck = function(target, item, caster)
return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end
itemObject.onItemUse = function(target, user, item, action)
2026-02-19 22:48:02 -07:00
target:addStatusEffect(xi.effect.FOOD, { duration = 180, origin = user, sourceType = xi.effectSourceType.FOOD, sourceTypeParam = item:getID() })
end
itemObject.onEffectGain = function(target, effect)
effect:addMod(xi.mod.MND, 1)
effect:addMod(xi.mod.MOVE_SPEED_QUICKENING, 5)
end
itemObject.onEffectLose = function(target, effect)
end
2021-01-17 11:55:03 -05:00
return itemObject