-----------------------------------------
-- ID: 6071
-- Item: Magma Steak
-- Food Effect: 180 Min, All Races
-----------------------------------------
-- Strength +8
-- Attack +23% Cap 180
-- Ranged Attack +23% Cap 180
-- Vermin Killer +5
-----------------------------------------

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,6071);
end;

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

function onEffectGain(target,effect)
	target:addMod(MOD_STR, 8);
	target:addMod(MOD_FOOD_ATTP, 23);
	target:addMod(MOD_FOOD_ATT_CAP, 180);
	target:addMod(MOD_FOOD_RATTP, 23);
	target:addMod(MOD_FOOD_RATT_CAP, 180);
	target:addMod(MOD_VERMIN_KILLER, 5);
end;

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

function onEffectLose(target,effect)
	target:delMod(MOD_STR, 8);
	target:delMod(MOD_FOOD_ATTP, 23);
	target:delMod(MOD_FOOD_ATT_CAP, 180);
	target:delMod(MOD_FOOD_RATTP, 23);
	target:delMod(MOD_FOOD_RATT_CAP, 180);
	target:delMod(MOD_VERMIN_KILLER, 5);
end;
