module Base
{


	/************************Ammunition************************/

	craftRecipe ConvertAmmo
	{
		Time = 0,
		ToolTip = Tooltip_Recipe_ConvertAmmo,
		Tags = InHandCraft;CanBeDoneInDark,
		category = Ammunition,
		inputs
		{
			item 1 [Base.223Bullets;Base.556Bullets;Base.308Bullets;Base.762x51Bullets;Base.Bullets38;Base.Bullets357] mappers[ammoType] flags[Prop2],
		}
		outputs
		{
			item 1 mapper:ammoType,
		}
		itemMapper ammoType
		{
			Base.556Bullets = Base.223Bullets,
			Base.223Bullets = Base.556Bullets,
			Base.762x51Bullets = Base.308Bullets,
			Base.308Bullets = Base.762x51Bullets,
			Base.Bullets357 = Base.Bullets38,
			Base.Bullets38 = Base.Bullets357,
		}
	}

		/* Boxes */

	craftRecipe firearmsOpenBoxOfBullets50
	{
		timedAction = OpenAmmoBox,
			Time = 15,
			category = Ammunition,
			Tags = InHandCraft;CanBeDoneInDark,
			inputs
			{
				item 1 [/*Base.Bullets9mmBox;Base.Bullets45Box;Base.Bullets38Box;Base.Bullets44Box;*/Bullets10mmBox;Base.Bullets357Box;Base.Bullets4440Box;Base.Bullets22Box] mappers[ammoTypes] flags[Prop2],
			}
			outputs
			{
				item 50 mapper:ammoTypes,
			}
		itemMapper ammoTypes
		{
			/*Base.Bullets9mm = Base.Bullets9mmBox,
			Base.Bullets45 = Base.Bullets45Box,
			Base.Bullets38 = Base.Bullets38Box,
			Base.Bullets44 = Base.Bullets44Box,*/
			Base.Bullets10mm = Base.Bullets10mmBox,
			Base.Bullets357 = Base.Bullets357Box,
			Base.Bullets4440 = Base.Bullets4440Box,
			Base.Bullets22 = Base.Bullets22Box,
		}
	}

	craftRecipe firearmsOpenBoxOfBullets20
	{
		timedAction = OpenAmmoBox,
			Time = 15,
			category = Ammunition,
			Tags = InHandCraft;CanBeDoneInDark,
			inputs
			{
				item 1 [/*Base.223Box;Base.556Box;Base.308Box;*/Base.762x51Box;Base.762x39Box;Base.Bullets3006Box] mappers[ammoTypes] flags[Prop2],
			}
			outputs
			{
				item 20 mapper:ammoTypes,
			}
		itemMapper ammoTypes
		{
			/*Base.223Bullets = Base.223Box,
			Base.556Bullets = Base.556Box,
			Base.308Bullets = Base.308Box,*/
			Base.762x51Bullets = Base.762x51Box,
			Base.762x39Bullets = Base.762x39Box,
			Base.Bullets3006 = Base.Bullets3006Box,
		}
	}

	/*craftRecipe Place556AmmoInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 20 [Base.556Bullets] ,
		}
		outputs
		{
			item 1 Base.556Box,
		}
	}

	craftRecipe Place223AmmoInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 20 [Base.223Bullets],
		}
		outputs
		{
			item 1 Base.223Box,
		}
	}

	craftRecipe Place308AmmoInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 20 [Base.308Bullets],
		}
		outputs
		{
			item 1 Base.308Box,
		}
	}*/

	craftRecipe Place762x51AmmoInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 20 [Base.762x51Bullets],
		}
		outputs
		{
			item 1 Base.762x51Box,
		}
	}

	craftRecipe Place762x39AmmoInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 20 [Base.762x39Bullets],
		}
		outputs
		{
			item 1 Base.762x39Box,
		}
	}

	craftRecipe Place10mmBulletsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 50 [Base.Bullets10mm],
		}
		outputs
		{
			item 1 Base.Bullets10mmBox,
		}
	}

	craftRecipe PlaceBullets22InBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 50 [Base.Bullets22],
		}
		outputs
		{
			item 1 Base.Bullets22Box,
		}
	}

	/*craftRecipe Place9mmBulletsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 50 [Base.Bullets9mm],
		}
		outputs
		{
			item 1 Base.Bullets9mmBox,
		}
	}

	craftRecipe Place45AutoBulletsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 50 [Base.Bullets45],
		}
		outputs
		{
			item 1 Base.Bullets45Box,
		}
	}

	craftRecipe Place38SpecialBulletsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 50 [Base.Bullets38],
		}
		outputs
		{
			item 1 Base.Bullets38Box,
		}
	}*/

	craftRecipe Place357BulletsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 50 [Base.Bullets357],
		}
		outputs
		{
			item 1 Base.Bullets357Box,
		}
	}

	/*craftRecipe Place44MagnumBulletsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 50 [Base.Bullets44],
		}
		outputs
		{
			item 1 Base.Bullets44Box,
		}
	}*/

	craftRecipe Place4440BulletsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 50 [Base.Bullets4440],
		}
		outputs
		{
			item 1 Base.Bullets4440Box,
		}
	}

	craftRecipe Place3006BulletsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 20 [Base.Bullets3006],
		}
		outputs
		{
			item 1 Base.Bullets3006Box,
		}
	}

	/*craftRecipe PlaceShotgunShellsInBox
	{
		timedAction = PlaceAmmoInBox,
		Time = 15,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 25 [Base.ShotgunShells],
		}
		outputs
		{
			item 1 Base.ShotgunShellsBox,
		}
	}*/

	craftRecipe OpenCartonOfBullets_Firearms
	{
		timedAction = OpenAmmoBox,
		Time = 50,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 1 [Bullets10mmCarton;Bullets4440Carton;Bullets357Carton;762x51BulletsCarton;762x39BulletsCarton;Bullets22Carton;Bullets3006Carton] mappers[ammoTypes],
		}
		outputs
		{
			item 12 mapper:ammoTypes,
		}
			itemMapper ammoTypes
			{
			Base.Bullets10mmBox = Base.Bullets10mmCarton,
			Base.Bullets4440Box = Base.Bullets4440Carton,
			Base.Bullets357Box = Base.Bullets357Carton,
			Base.762x51Box = Base.762x51BulletsCarton,
			Base.762x39Box = Base.762x39BulletsCarton,
			Base.Bullets22Box = Base.Bullets22Carton,
			Base.Bullets3006Box = Base.Bullets3006Carton,
		}
	}

	craftRecipe PlaceBoxesOfBullets10mmAmmoInCarton
	{
		timedAction = Making,
		Time = 50,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 12 [Base.Bullets10mmBox],
		}
		outputs
		{
			item 1 Base.Bullets10mmCarton,
		}
	}

	craftRecipe PlaceBoxesOfBullets4440AmmoInCarton
	{
		timedAction = Making,
		Time = 50,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 12 [Base.Bullets4440Box],
		}
		outputs
		{
			item 1 Base.Bullets4440Carton,
		}
	}

	craftRecipe PlaceBoxesOfBullets357AmmoInCarton
	{
		timedAction = Making,
		Time = 50,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 12 [Base.Bullets357Box],
		}
		outputs
		{
			item 1 Base.Bullets357Carton,
		}
	}

	craftRecipe PlaceBoxesOf762x51BulletsAmmoInCarton
	{
		timedAction = Making,
		Time = 50,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 12 [Base.762x51Box],
		}
		outputs
		{
			item 1 Base.762x51BulletsCarton,
		}
	}

	craftRecipe PlaceBoxesOf762x39BulletsAmmoInCarton
	{
		timedAction = Making,
		Time = 50,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 12 [Base.762x39Box],
		}
		outputs
		{
			item 1 Base.762x39BulletsCarton,
		}
	}

	craftRecipe PlaceBoxesOfBullets22AmmoInCarton
	{
		timedAction = Making,
		Time = 50,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 12 [Base.Bullets22Box],
		}
		outputs
		{
			item 1 Base.Bullets22Carton,
		}
	}

	craftRecipe PlaceBoxesOfBullets3006AmmoInCarton
	{
		timedAction = Making,
		Time = 50,
		category = Ammunition,
		Tags = InHandCraft,
		inputs
		{
			item 12 [Base.Bullets3006Box],
		}
		outputs
		{
			item 1 Base.Bullets3006Carton,
		}
	}

}
