task EliminateSystem
{
	ModeChange;
	IntensityCheck;

	task ModeChange
	{
	loop
	{
		if(GetKeyState(VK_USER)==KEY_PUSH || GetKeyState(VK_USER)==KEY_HOLD)
		{
			EliminateMode=true;
		}
		else
		{
			EliminateMode=false;
		}
	yield;
	}
	}

	task IntensityCheck
	{
	let Counter=0;
	loop
	{
		if(EliminateMode)
		{
			EliminateIntensity-=1;
			Counter=0;
		}
		else
		{
			EliminateIntensity+=Counter/120;
			Counter+=1;
		}
		if(GetKeyState(VK_USER)==KEY_PUSH)
		{
			EliminateIntensity-=50;
		}
		if(Counter>60){Counter=120;}
		
		if(EliminateIntensity<0){EliminateIntensity=0;}
		if(EliminateIntensity>1000){EliminateIntensity=1000;}
	yield;
	}
	}

}

