landsandboat/scripts/items/cherry_macaron.lua

29 lines
872 B
Lua
Raw Permalink Normal View History

2021-01-18 12:51:02 -05:00
-----------------------------------
-- ID: 5779
-- Item: cherry_macaron
-- Food Effect: 30Min, All Races
2021-01-18 12:51:02 -05:00
-----------------------------------
-- Increases rate of synthesis success +3%
2018-05-19 13:05:52 -04:00
-- Increases synthesis skill gain rate +3%
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 = 1800, origin = user, sourceType = xi.effectSourceType.FOOD, sourceTypeParam = item:getID() })
end
itemObject.onEffectGain = function(target, effect)
effect:addMod(xi.mod.SYNTH_SUCCESS_RATE, 3)
effect:addMod(xi.mod.SYNTH_SKILL_GAIN, 3)
end
itemObject.onEffectLose = function(target, effect)
end
2021-01-17 11:55:03 -05:00
return itemObject