-----------------------------------------
-- ID: 5611
-- Item: Angler's Stewpot
-- Food Effect: 3 Hrs, All Races
-----------------------------------------
-- TODO: Group Effect
-- HP +10%
-- MP +10
-- HP Recoverd while healing 5
-- MP Recovered while healing 1
-- Accuracy +15% Cap 15
-- Ranged Accuracy 15% Cap 15
-----------------------------------------

require("scripts/globals/status");

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

function onItemCheck(target)
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,10800,5611);
end;

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

function onEffectGain(target,effect)
	target:addMod(MOD_HPP, 10);
	target:addMod(MOD_MP, 10);
	target:addMod(MOD_HPHEAL, 5);
	target:addMod(MOD_MPHEAL, 1);
	target:addMod(MOD_FOOD_ACCP, 15);
	target:addMod(MOD_FOOD_ACC_CAP, 15);
	target:addMod(MOD_FOOD_RACCP, 15);
	target:addMod(MOD_FOOD_RACC_CAP, 15);
end;

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

function onEffectLose(target,effect)
	target:delMod(MOD_HPP, 10);
	target:delMod(MOD_MP, 10);
	target:delMod(MOD_HPHEAL, 5);
	target:delMod(MOD_MPHEAL, 1);
	target:delMod(MOD_FOOD_ACCP, 15);
	target:delMod(MOD_FOOD_ACC_CAP, 15);
	target:delMod(MOD_FOOD_RACCP, 15);
	target:delMod(MOD_FOOD_RACC_CAP, 15);
end;
