module Base
{
	/*
	recipe Craft Silencer
    	{
    		MetalPipe=1,
		SmallSheetMetal=6,
		BlowTorch=5,
        	keep WeldingMask,
		keep [Recipe.GetItemTypes.Screwdriver],
		keep Saw/GardenSaw,
		AnimNode:Disassemble,
    		Result:Silencer,
    		Category:Improvised,
		SkillRequired:MetalWelding=6,
		OnGiveXP:Recipe.OnGiveXP.MetalWelding50,
    		Time:500.0,
		Prop1:Screwdriver,
      		Prop2:Source=1,
    	}
	*/

	craftRecipe CraftMetalPipeSilencer
	{
		Time = 300,
		tags = AnySurfaceCraft,
		category = Survival,
		SkillRequired = MetalWelding:2,
		timedAction = CraftWeapon2H,
		inputs 
		{
			item 1 [Base.MetalPipe;Base.LeadPipe] mode:destroy flags[Prop2],
			item 1 tags[Saw] mode:keep,
			item 2 [Base.Screws],
			item 1 [Base.NutsBolts],
		}
		outputs
		{
			item 1 Base.MetalPipeSilencer,
		}
	} 
	

	craftRecipe CraftHandTorchSilencer
	{
		Time = 200,
		Tags = InHandCraft;Electrical,
		timedAction = DismantleElectrical,
		category = Survival,
	    OnCreate = Recipe.OnCreate.DismantleFlashlight,
		SkillRequired = Maintenance:2,
		inputs 
		{
			item 1 [Base.HandTorch] mode:destroy,
			item 1 tags[Screwdriver] flags[Prop1],
			item 2 [Base.DuctTape],
		}
		outputs
		{
			item 1 Base.TorchSilencer,
		}
	}

	craftRecipe CraftWaterBottleSilencer
	{
		Time = 100,
		Tags = InHandCraft,
		category = Survival,
		timedAction = Making,
		inputs 
		{
			item 1 [Base.WaterBottle;Base.PopBottle] mode:destroy,
			item 2 [Base.DuctTape],
		}
		outputs
		{
			item 1 Base.WaterBottleSilencer,
		}
	}
}