/*
function fire(status = 0){
	var inst;

	switch status
	{
		case 1:
			for(var i = 0; i < 4; i++)
			{
				inst = n();
				inst.cnt = i + 1;
			}
			obj_player.booster = 0;
			break;
		case 2:
			bullet -= 10;
			inst = b();
			inst.direction += 30;
			inst.speed = 10;
			inst = b();
			inst.direction -= 30;
			inst.speed = 10;
			break;
		default:
			bullet -= 9;
			b();
			break;

	}
}
*/
function fire(){
	if instance_exists(obj_perk2) && obj_perk2.activate
	{
		bullet -= 10;
		b();
		inst = b();
		inst.direction += 30;
		inst.speed = 10;
		inst = b();
		inst.direction -= 30;
		inst.speed = 10;
		obj_perk2.image_index += 1.75;
	}
	else
	{
		bullet -= 9;
		b();
	}
}
		
function b(){
	return instance_create_layer(x, y, "Instances", obj_bullet);
}
function n(){
	return instance_create_layer(x, y, "Instances", obj_nuke);
}