module KCMweapons
{
	imports
	{
		Base,
	}
	
	/****************************** AMMO RECIPES ******************************/

	recipe Unpack Bundle of Short Crossbow Bolts
	{
		CrossbowBoltBox,

		Result 			: CrossbowBolt=15,
		Sound 			: PZ_PutInBag,
		Time 			: 5,
		AnimNode 		: Craft,
	}

	recipe Pack Bundle of Short Crossbow Bolts
	{
		CrossbowBolt=15,
        
		Result 			: CrossbowBoltBox,
		Sound 			: PZ_PutInBag,
		Time 			: 5,
		AnimNode 		: Craft,
	}

	recipe Unpack Bundle of Long Crossbow Bolts
	{
		CrossbowBoltLargeBox,

		Result 			: CrossbowBoltLarge=10,
		Sound 			: PZ_PutInBag,
		Time 			: 5,
		AnimNode 		: Craft,
	}

	recipe Pack Bundle of Long Crossbow Bolts
	{
		CrossbowBoltLarge=10,
        
		Result 			: CrossbowBoltLargeBox,
		Sound 			: PZ_PutInBag,
		Time 			: 5,
		AnimNode 		: Craft,
	}

	recipe Unpack Bundle of Wooden Crossbow Bolts
	{
		WoodenBoltBox,

		Result 			: WoodenBolt=10,
		Sound 			: PZ_PutInBag,
		Time 			: 5,
		AnimNode 		: Craft,
	}

	recipe Pack Bundle of Wooden Crossbow Bolts
	{
		WoodenBolt=10,
        
		Result 			: WoodenBoltBox,
		Sound 			: PZ_PutInBag,
		Time 			: 5,
		AnimNode 		: Craft,
	}

	/****************************** REPAIR & FIXING RECIPES ******************************/

	fixing Fix Hand Crossbow
	{
		Require 		: HandCrossbow,
		Fixer 			: ScrapMetal=1; MetalWelding=1,
		Fixer 			: HandCrossbow; Aiming=1,
		Fixer 			: DuctTape=2,

	}

	fixing Fix Crossbow
	{
		Require 		: LargeCrossbow,
		Fixer 			: ScrapMetal=2; MetalWelding=1,
		Fixer 			: LargeCrossbow; Aiming=2,
		Fixer 			: DuctTape=2,

	}

	fixing Fix Handmade Wooden Crossbow
	{
		Require 		: KCM_Handmade,
		Fixer 			: Plank=1; Carpentry=1,
		Fixer 			: KCM_Handmade; Aiming=2,
		Fixer 			: DuctTape=2,

	}

	fixing Fix Handmade Metal Crossbow
	{
		Require 		: KCM_Handmade02,
		Fixer 			: ScrapMetal=1; MetalWelding=1,
		Fixer 			: KCM_Handmade02; Aiming=2,
		Fixer 			: DuctTape=2,

	}

	recipe Dismantle Hand Crossbow
	{
		HandCrossbow,
        keep Screwdriver,

        NoBrokenItems		: true,        
		Result 				: ScrapMetal,
		Time 				: 30,
        OnCreate			: DismantleHandCrossbow_OnCreate,
        OnGiveXP			: Give05MWXP,
		Category 			: Welding,
		AnimNode 			: Disassemble,
        Prop1				: Screwdriver,
	}

	recipe Dismantle Crossbow Bolt
	{
		CrossbowBoltLarge/CrossbowBolt,
        keep Saw/GardenSaw,

        NoBrokenItems		: true,        
		Result 				: MetalBar,
		Sound 				: Sawing,
		Time 				: 20,
        OnGiveXP			: Give10MWXP,
		Category 			: Welding,
		AnimNode 			: Disassemble,
        Prop1				: Hacksaw,
	}



	/****************************** CRAFTING RECIPES ******************************/
	recipe Craft Wooden Crossbow
	{
		Plank=2,
		Nails=10,
		KCM_Flax=5,
		ScrapMetal=2,
		RippedSheets=2,
        keep Hammer,
		keep Saw/GardenSaw,

        NoBrokenItems		: true,        
		Result 				: KCM_Handmade,
		Sound 				: Sawing,
		Time 				: 100,
		Category 			: Carpentry,
		AnimNode 			: Disassemble,
        Prop1				: Hacksaw,
	}

	recipe Craft Metal Crossbow
	{
		SmallSheetMetal=2,
		BlowTorch=5,
		Screws=10,
		KCM_Flax=5,
		ScrapMetal=4,
        keep Screwdriver,
		keep Saw/GardenSaw,

        NoBrokenItems		: true,        
		Result 				: KCM_Handmade02,
		Sound 				: Blowtorch,
		Time 				: 100,
		Category 			: Welding,
		AnimNode 			: Disassemble,
		OnGiveXP:Give10MWXP,
        Prop1				: BlowTorch,
	}

    recipe Craft Wooden Crossbow Bolts
    {
       ScrapMetal,
	   WoodenStick,
       Glue=2,
	   keep Hammer/BallPeenHammer,

       Result:WoodenBolt,
       Time:100.0,
	   Sound:Hammering,
	   AnimNode:Disassemble,
	   Prop1:Hammer,
       NeedToBeLearn:FALSE,
       Category:Carpentry,
    }

    recipe Crossbow Bolt Shaft
    {
       ScrapMetal,
       keep Saw/GardenSaw,

       Result:CrossbowBoltShaft,
       Time:100.0,
       NeedToBeLearn:FALSE,
	   Sound:Sawing,
	   AnimNode:SawLog,
	   Prop1:GardenSaw,
       /*Category:Engineer,*/
    }

    recipe Crossbow Bolt Components
    {
       ScrapMetal,
       keep Saw/GardenSaw,
	   keep Hammer/BallPeenHammer,

       Result:CrossbowBoltParts,
       Time:100.0,
	   Sound:Sawing,
       AnimNode:SawLog,
       Prop1:GardenSaw,
       NeedToBeLearn:FALSE,
       /*Category:Engineer,*/
    }

    recipe Make Long Crossbow Bolt
    {
       CrossbowBoltParts,
	   CrossbowBoltShaft,
       Glue=2,
	   keep Hammer/BallPeenHammer,

       Result:CrossbowBoltLarge,
       Time:100.0,
	   Sound:Hammering,
	   AnimNode:Disassemble,
	   Prop1:Hammer,
       NeedToBeLearn:FALSE,
       /*Category:Engineer,*/
    }

    recipe Make Short Crossbow Bolt
    {
       CrossbowBoltParts,
	   CrossbowBoltShaft,
       Glue=1,
	   keep Hammer/BallPeenHammer,

       Result:CrossbowBolt,
       Time:100.0,
	   Sound:Hammering,
	   AnimNode:Disassemble,
	   Prop1:Hammer,
       NeedToBeLearn:FALSE,
       /*Category:Engineer,*/
    }

	/****************************** ATTACHMENT CONVERSION RECIPES******************************/
    recipe Convert Sling to Crossbow Sling
    {
       Sling,
	   keep Screwdriver,

       Result:KCM_Sling,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert Ironsight to Crossbow Ironsight
    {
       IronSight,
	   keep Screwdriver,

       Result:KCM_IronSight,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert x2 Scope to Crossbow x2 Scope
    {
       x2Scope,
	   keep Screwdriver,

       Result:KCM_x2Scope,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert x4 Scope to Crossbow x4 Scope
    {
       x4Scope,
	   keep Screwdriver,

       Result:KCM_x4Scope,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert x8 Scope to Crossbow x8 Scope
    {
       x8Scope,
	   keep Screwdriver,

       Result:KCM_x8Scope,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert RedDot to Crossbow RedDot
    {
       RedDot,
	   keep Screwdriver,

       Result:KCM_RedDot,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert Stock to Crossbow Stock
    {
       FiberglassStock,
	   keep Screwdriver,

       Result:KCM_FiberglassStock,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }
    recipe Convert Crossbow Sling to Normal Sling
    {
       KCM_Sling,
	   keep Screwdriver,

       Result:Sling,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert Crossbow Ironsight to Normal Ironsight
    {
       KCM_IronSight,
	   keep Screwdriver,

       Result:IronSight,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert Crossbow x2 Scope to Normal x2 Scope
    {
       KCM_x2Scope,
	   keep Screwdriver,

       Result:x2Scope,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert Crossbow x4 Scope to Normal 4x Scope
    {
       KCM_x4Scope,
	   keep Screwdriver,

       Result:x4Scope,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert Crossbow x8 Scope to Normal x8 Scope
    {
       KCM_x8Scope,
	   keep Screwdriver,

       Result:x8Scope,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert Crossbow RedDot to Normal RedDot
    {
       KCM_RedDot,
	   keep Screwdriver,

       Result:RedDot,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }

    recipe Convert Crossbow Stock to Normal Stock
    {
       KCM_FiberglassStock,
	   keep Screwdriver,

       Result:FiberglassStock,
       Time:40.0,
	   Sound:Screwing,
	   AnimNode:Disassemble,
	   Prop1:Screwdriver,
       NeedToBeLearn:FALSE,
    }


	/****************************** CRAFTING RECIPE ITEMS ******************************/
    item CrossbowBoltShaft
    {
        Weight	=	0.1,
        Type	=	Normal,
        DisplayName	=	Crossbow Bolt Shaft,
        Icon	=	CrossbowBoltShaft,
        MetalValue = 30,
        SurvivalGear = TRUE,
    }
    item CrossbowBoltParts
    {
        Weight	=	0.1,
        Type	=	Normal,
        DisplayName	=	Crossbow Bolt Components,
        Icon	=	CrossbowBoltParts,
        MetalValue = 30,
        SurvivalGear = TRUE,
    }
}