-----------------------------------------
-- ID: 4345
-- Item: serving_of_flounder_meuniere_+1
-- Food Effect: 240Min, All Races
-----------------------------------------
-- Dexterity 6
-- Vitality 1
-- Mind -1
-- Ranged ACC 15
-- Ranged ATT % 14
-- Ranged ATT Cap 30
-- Enmity -3
-----------------------------------------

require("scripts/globals/status");

-----------------------------------------
-- OnItemCheck
-----------------------------------------

function onItemCheck(target)
local result = 0;
	if (target:hasStatusEffect(EFFECT_FOOD) == true) then
		result = 246;
	end
return result;
end;

-----------------------------------------
-- OnItemUse
-----------------------------------------

function onItemUse(target)
	target:addStatusEffect(EFFECT_FOOD,0,0,14400,4345);
end;

-----------------------------------------
-- onEffectGain Action
-----------------------------------------

function onEffectGain(target,effect)
	target:addMod(MOD_DEX, 6);
	target:addMod(MOD_VIT, 1);
	target:addMod(MOD_MND, -1);
	target:addMod(MOD_RACC, 15);
	target:addMod(MOD_FOOD_RATTP, 14);
	target:addMod(MOD_FOOD_RATT_CAP, 30);
	target:addMod(MOD_ENMITY, -3);
end;

-----------------------------------------
-- onEffectLose Action
-----------------------------------------

function onEffectLose(target,effect)
	target:delMod(MOD_DEX, 6);
	target:delMod(MOD_VIT, 1);
	target:delMod(MOD_MND, -1);
	target:delMod(MOD_RACC, 15);
	target:delMod(MOD_FOOD_RATTP, 14);
	target:delMod(MOD_FOOD_RATT_CAP, 30);
	target:delMod(MOD_ENMITY, -3);
end;
