-----------------------------------
-- ID: 5210
-- Item: Bowl of Adamantoise Soup
-- Food Effect: 180Min, All Races
-----------------------------------
-- Strength -7
-- Dexterity -7
-- Agility -7
-- Vitality -7
-- Intelligence -7
-- Mind -7
-- Charisma -7
-----------------------------------
---@type TItemFood
local itemObject = {}

itemObject.onItemCheck = function(target, item, param, caster)
    return xi.itemUtils.foodOnItemCheck(target, xi.foodType.BASIC)
end

itemObject.onItemUse = function(target, user, item, action)
    target:addStatusEffect(xi.effect.FOOD, 0, 0, 10800, 0, 0, 0, xi.effectSourceType.FOOD, item:getID(), user:getID())
end

itemObject.onEffectGain = function(target, effect)
    target:addMod(xi.mod.STR, -7)
    target:addMod(xi.mod.DEX, -7)
    target:addMod(xi.mod.AGI, -7)
    target:addMod(xi.mod.VIT, -7)
    target:addMod(xi.mod.INT, -7)
    target:addMod(xi.mod.MND, -7)
    target:addMod(xi.mod.CHR, -7)
end

itemObject.onEffectLose = function(target, effect)
    target:delMod(xi.mod.STR, -7)
    target:delMod(xi.mod.DEX, -7)
    target:delMod(xi.mod.AGI, -7)
    target:delMod(xi.mod.VIT, -7)
    target:delMod(xi.mod.INT, -7)
    target:delMod(xi.mod.MND, -7)
    target:delMod(xi.mod.CHR, -7)
end

return itemObject
