module Base
{

craftRecipe CreateBiberon
	{
        timedAction = Making,
		Tags = AnySurfaceCraft,
		Time = 600,
		category = Assembly,

		inputs
		{
			item 1 tags[Scissors] mode:keep flags[MayDegradeLight],
			item 1 [Base.Gloves_Surgical] mode:destroy,
			item 1 [Base.DuctTape],
			item 1 [Base.BeerEmpty;Base.MilkBottle;Base.BottleCrafted;Base.WaterBottle;Base.PopBottleRare;Base.PopBottle],
		}
		outputs
		{
			item 1 Babies.Biberon,
		}
	}

craftRecipe CreateDiaper
	{
		timedAction = SewingCloth,
		Tags = AnySurfaceCraft,
		Time = 500,
		category = Tailoring,

		inputs
		{
			item 1 tags[Scissors] mode:keep flags[MayDegradeLight],
			item 1 tags[SewingNeedle] mode:keep flags[MayDegradeLight],
			item 3 [Base.AlcoholRippedSheets] mode:destroy,
			item 2 [Base.Thread],
		}

		outputs
		{
			item 1 Babies.Diaper,
		}
	} 

craftRecipe Create_Biberon_with_Milk
	{
		timedAction = MixingBowl,
		Time = 50,
		OnCreate = Recipe.OnCreate.RefillBiberon,
		Tags = AnySurfaceCraft;Cooking,
		category = Cooking,
		inputs
		{
			item 2 [Babies.Baby_formula],
			item 1 [Babies.Biberon] mode:keep,
			-fluid 0.5 [Water],
		}
		outputs
		{
		}

	}

craftRecipe FeedBaby
	{
		timedAction = FeedBaby,
		Time = 100,
		Tags = InHandCraft;Cooking,
		category = Cooking,
		OnCreate = BabiesRecipe.OnCreate.FeedBaby,
		/* CanWalk = true, */

		inputs
		{
			item 1 [Babies.Baby_01;Babies.Baby_02;Babies.Baby_03;Babies.Baby_07;Babies.Baby_08;Babies.Baby_09;Babies.Baby_10;Babies.Baby_11;Babies.Baby_12;Babies.Baby_13;Babies.Baby_14;Babies.Baby_01_b;Babies.Baby_02_b;Babies.Baby_03_b;Babies.Baby_07_b;Babies.Baby_08_b;Babies.Baby_09_b;Babies.Baby_10_b;Babies.Baby_11_b;Babies.Baby_12_b] mode:keep flags[Prop2],
			item 1 [Babies.Biberon] mode:keep flags[Prop1],
			-fluid 0.5 [AnimalMilk],
			
		}
		outputs
		{
			item 1 Babies.BabyFull,
		}
		
	}

craftRecipe CreateBabyCarrier
	{
		timedAction = SewingCloth,
		Time = 600,
		Tags = AnySurfaceCraft,
		category = Tailoring,
		xpAward = Tailoring:2,
		SkillRequired = Tailoring:4,		
		inputs
		{
			item 1 tags[Scissors;SharpKnife] mode:keep flags[MayDegradeLight],
			item 1 tags[SewingNeedle] mode:keep flags[MayDegradeLight],
			item 3 [Base.RippedSheets] mode:destroy,
			item 4 [Base.DenimStrips] mode:destroy,
			item 2 [Base.LeatherStrips] mode:destroy,
			item 2 [Base.Thread],


		}
		outputs
		{
			item 1 Babies.Baby_carrier_blue_floor,
		}
		
	}

craftRecipe PutBabyInCarrier
	{
		timedAction = Making,
		Time = 50,
		OnCreate = BabiesRecipe.OnCreate.PutBabyInCarrier,
		Tags = InHandCraft,

		inputs
		{
			item 1 [Babies.Baby_carrier_blue_floor],
			item 1 [Babies.Baby_01;Babies.Baby_02;Babies.Baby_03;Babies.Baby_07;Babies.Baby_08;Babies.Baby_09;Babies.Baby_10;Babies.Baby_11;Babies.Baby_12;Babies.Baby_13;Babies.Baby_14] mappers[BabyInCarrier],
		}
		
		outputs
		{
			item 1 mapper:BabyInCarrier,
		}
		itemMapper BabyInCarrier
		{
			Babies.Baby_carrier_blue_baby_01 = Babies.Baby_01,
			Babies.Baby_carrier_blue_baby_01 = Babies.Baby_07,
			Babies.Baby_carrier_blue_baby_01 = Babies.Baby_10,
			Babies.Baby_carrier_blue_baby_02 = Babies.Baby_02,
			Babies.Baby_carrier_blue_baby_02 = Babies.Baby_08,
			Babies.Baby_carrier_blue_baby_02 = Babies.Baby_11,
			Babies.Baby_carrier_blue_baby_03 = Babies.Baby_03,
			Babies.Baby_carrier_blue_baby_03 = Babies.Baby_09,
			Babies.Baby_carrier_blue_baby_03 = Babies.Baby_12,
			Babies.Baby_carrier_blue_baby_04 = Babies.Baby_13,
			Babies.Baby_carrier_blue_baby_04 = Babies.Baby_14,
		}
	}

craftRecipe TakeBabyFromCarrier
	{
		timedAction = Making,
		Time = 50,
		Tags = InHandCraft,
		OnCreate = BabiesRecipe.OnCreate.GetCarrier,

		inputs
		{
			item 1 [Babies.Baby_carrier_blue_baby_01;Babies.Baby_carrier_blue_baby_02;Babies.Baby_carrier_blue_baby_03;Babies.Baby_carrier_blue_baby_04] mappers[BabyFromCarrier] mode:destroy,
		}
		
		outputs
		{
			item 1 mapper:BabyFromCarrier,
		}
		itemMapper BabyFromCarrier
		{
			Babies.Baby_01 = Babies.Baby_carrier_blue_baby_01,
			Babies.Baby_02 = Babies.Baby_carrier_blue_baby_02,
			Babies.Baby_03 = Babies.Baby_carrier_blue_baby_03,
			Babies.Baby_13 = Babies.Baby_carrier_blue_baby_04,
		}
	}

craftRecipe ConvertCarrierInBackpack
	{
	timedAction = Making,
	Time = 50,
	Tags = InHandCraft,
	
    inputs
    {
        item 1 [Babies.Baby_carrier_blue_floor],
    }
    outputs
    {
        item 1 Babies.Baby_carrier_floor_bkp,
    }

	}

craftRecipe ConvertBackpackInCarrier
	{
		timedAction = Making,
		Time = 50,
		Tags = InHandCraft,

		inputs
		{
			item 1 [Babies.Baby_carrier_floor_bkp],
		}
		outputs
		{
			item 1 Babies.Baby_carrier_blue_floor,
		}
	}

craftRecipe PutBabyInBackpack
	{
		timedAction = Making,
		Time = 50,
		OnCreate = BabiesRecipe.OnCreate.PutBabyInBackpack,
		Tags = InHandCraft,	

		inputs
		{
			item 1 [Babies.Baby_carrier_floor_bkp],
			item 1 [Babies.Baby_01;Babies.Baby_07;Babies.Baby_10;Babies.Baby_02;Babies.Baby_08;Babies.Baby_11;Babies.Baby_03;Babies.Baby_09;Babies.Baby_12;Babies.Baby_13;Babies.Baby_14] mappers[BabyInCarrier],
		}
		
		outputs
		{
			item 1 mapper:BabyInCarrier,
		}
		itemMapper BabyInCarrier
		{
			Babies.Baby_carrier_blue_baby_01_bkp = Babies.Baby_01,
			Babies.Baby_carrier_blue_baby_01_bkp = Babies.Baby_07,
			Babies.Baby_carrier_blue_baby_01_bkp = Babies.Baby_10,
			Babies.Baby_carrier_blue_baby_02_bkp = Babies.Baby_02,
			Babies.Baby_carrier_blue_baby_02_bkp = Babies.Baby_08,
			Babies.Baby_carrier_blue_baby_02_bkp = Babies.Baby_11,
			Babies.Baby_carrier_blue_baby_03_bkp = Babies.Baby_03,
			Babies.Baby_carrier_blue_baby_03_bkp = Babies.Baby_09,
			Babies.Baby_carrier_blue_baby_03_bkp = Babies.Baby_12,
			Babies.Baby_carrier_blue_baby_04_bkp = Babies.Baby_13,
			Babies.Baby_carrier_blue_baby_04_bkp = Babies.Baby_14,

		}
	}

craftRecipe TakeBabyFromBackpack
	{
		timedAction = Making,
		Time = 50,
		Tags = InHandCraft,
		OnCreate = BabiesRecipe.OnCreate.GetBackPack,

		inputs
		{
			item 1 [Babies.Baby_carrier_blue_baby_01_bkp;Babies.Baby_carrier_blue_baby_02_bkp;Babies.Baby_carrier_blue_baby_03_bkp;Babies.Baby_carrier_blue_baby_04_bkp] mappers[BabyFromBackpack] mode:destroy,
		}
		
		outputs
		{
			item 1 mapper:BabyFromBackpack,
		}
		itemMapper BabyFromBackpack
		{
			Babies.Baby_01 = Babies.Baby_carrier_blue_baby_01_bkp,
			Babies.Baby_02 = Babies.Baby_carrier_blue_baby_02_bkp,
			Babies.Baby_03 = Babies.Baby_carrier_blue_baby_03_bkp,
			Babies.Baby_13 = Babies.Baby_carrier_blue_baby_04_bkp,
		}
	}

craftRecipe Sitted 
	{
			timedAction = Making,
			Time = 10,
			Tags = InHandCraft,
			OnCreate = BabiesRecipe.OnCreate.KeepName,

			inputs
			{
				item 1 [Babies.Baby_01;Babies.Baby_10;Babies.Baby_02;Babies.Baby_11;Babies.Baby_03;Babies.Baby_12;Babies.Baby_01_b;Babies.Baby_10_b;Babies.Baby_02_b;Babies.Baby_11_b;Babies.Baby_03_b;Babies.Baby_12_b;Babies.Baby_14;Babies.Baby_5WW;Babies.Baby_5Wlying;Babies.Baby_5WB;Babies.Baby_5Blying] mappers[BabySitted],
			}
			outputs
			{
				item 1 mapper:BabySitted,
			}
			itemMapper BabySitted
			{
				Babies.Baby_07 = Babies.Baby_01,
				Babies.Baby_07 = Babies.Baby_10,
				Babies.Baby_08 = Babies.Baby_02,
				Babies.Baby_08 = Babies.Baby_11,
				Babies.Baby_09 = Babies.Baby_03,
				Babies.Baby_09 = Babies.Baby_12,
				Babies.Baby_07_b = Babies.Baby_01_b,
				Babies.Baby_07_b = Babies.Baby_10_b,
				Babies.Baby_08_b = Babies.Baby_02_b,
				Babies.Baby_08_b = Babies.Baby_11_b,
				Babies.Baby_09_b = Babies.Baby_03_b,
				Babies.Baby_09_b = Babies.Baby_12_b,
				Babies.Baby_13 = Babies.Baby_14,
				Babies.Baby_5Wsitt = Babies.Baby_5WW,
				Babies.Baby_5Wsitt = Babies.Baby_5Wlying,
				Babies.Baby_5Bsitt = Babies.Baby_5WB,
				Babies.Baby_5Bsitt = Babies.Baby_5Blying,
			}	
		}

		craftRecipe Crawling
		{
			timedAction = Making,
			Time = 10,
			Tags = InHandCraft,
			OnCreate = BabiesRecipe.OnCreate.KeepName,

			inputs
			{
				item 1 [Babies.Baby_01;Babies.Baby_07;Babies.Baby_02;Babies.Baby_08;Babies.Baby_03;Babies.Baby_09;Babies.Baby_01_b;Babies.Baby_07_b;Babies.Baby_02_b;Babies.Baby_08_b;Babies.Baby_03_b;Babies.Baby_09_b;Babies.Baby_13] mappers[BabyCrawling],
			}
			outputs
			{
				item 1 mapper:BabyCrawling,
			}
			itemMapper BabyCrawling
			{
				Babies.Baby_10 = Babies.Baby_01,
				Babies.Baby_10 = Babies.Baby_07,
				Babies.Baby_11 = Babies.Baby_02,
				Babies.Baby_11 = Babies.Baby_08,
				Babies.Baby_12 = Babies.Baby_03,
				Babies.Baby_12 = Babies.Baby_09,
				Babies.Baby_10_b = Babies.Baby_01_b,
				Babies.Baby_10_b = Babies.Baby_07_b,
				Babies.Baby_11_b = Babies.Baby_02_b,
				Babies.Baby_11_b = Babies.Baby_08_b,
				Babies.Baby_12_b = Babies.Baby_03_b,
				Babies.Baby_12_b = Babies.Baby_09_b,
				Babies.Baby_14 = Babies.Baby_13,
			}
		}

		craftRecipe Lying
		{
			timedAction = Making,
			Time = 10,
			Tags = InHandCraft,
			OnCreate = BabiesRecipe.OnCreate.KeepName,

			inputs
			{
				item 1 [Babies.Baby_10;Babies.Baby_07;Babies.Baby_11;Babies.Baby_08;Babies.Baby_12;Babies.Baby_09;Babies.Baby_10_b;Babies.Baby_07_b;Babies.Baby_11_b;Babies.Baby_08_b;Babies.Baby_12_b;Babies.Baby_09_b;Babies.Baby_5WB;Babies.Baby_5Bsitt;Babies.Baby_5WW;Babies.Baby_5Wsitt] mappers[BabyLying],
			}
			outputs
			{
				item 1 mapper:BabyLying,
			}
			itemMapper BabyLying
			{
				Babies.Baby_01 = Babies.Baby_10,
				Babies.Baby_01 = Babies.Baby_07,
				Babies.Baby_02 = Babies.Baby_11,
				Babies.Baby_02 = Babies.Baby_08,
				Babies.Baby_03 = Babies.Baby_12,
				Babies.Baby_03 = Babies.Baby_09,
				Babies.Baby_01_b = Babies.Baby_10_b,
				Babies.Baby_01_b = Babies.Baby_07_b,
				Babies.Baby_02_b = Babies.Baby_11_b,
				Babies.Baby_02_b = Babies.Baby_08_b,
				Babies.Baby_03_b = Babies.Baby_12_b,
				Babies.Baby_03_b = Babies.Baby_09_b,
				Babies.Baby_5Blying = Babies.Baby_5WB,
				Babies.Baby_5Blying = Babies.Baby_5Bsitt,
				Babies.Baby_5Wlying = Babies.Baby_5WW,
				Babies.Baby_5Wlying = Babies.Baby_5Wsitt,
			}
		}

		craftRecipe Standing
		{
			timedAction = Making,
			Time = 10,
			Tags = InHandCraft,
			OnCreate = BabiesRecipe.OnCreate.KeepName,

			inputs
			{
				item 1 [Babies.Baby_5Bsitt;Babies.Baby_5Blying;Babies.Baby_5Wsitt;Babies.Baby_5Wlying] mappers[BabyStanding],
			}
			outputs
			{
				item 1 mapper:BabyStanding,
			}
			itemMapper BabyStanding
			{
				Babies.Baby_5WB = Babies.Baby_5Bsitt,
				Babies.Baby_5WB = Babies.Baby_5Blying,
				Babies.Baby_5WW = Babies.Baby_5Wsitt,
				Babies.Baby_5WW = Babies.Baby_5Wlying,
			}
		}

/****** Moveables ******/

/*
craftRecipe MakeCrib
	{
		timedAction = Making,
		Time = 250,
		Tags = AnySurfaceCraft;Carpentry,
		category = Carpentry,
		SkillRequired = Carpentry:5,
		xpAward = Woodwork:1,

		inputs
		{
			item 1 tags[Hammer] mode:keep flags[MayDegradeLight;Prop1],
			item 6 [Base.WoodenStick2],
			item 1 [Base.Mattress],
			item 12 [Base.Nails],
			item 1 [Base.Plank] flags[Prop2],
		}
		outputs
		{
			item 1 Moveables.babiesTiles_0,
		}
	}

craftRecipe MakeToyCrate
	{
		timedAction = Making,
		Time = 250,
		Tags = AnySurfaceCraft;Carpentry,
		category = Carpentry,
		SkillRequired = Carpentry:4,
		xpAward = Woodwork:1,

		inputs
		{
			item 1 tags[Hammer] mode:keep flags[MayDegradeLight;Prop1],
			item 5 [Base.Plank] flags[Prop2],
			item 8 [Base.Nails],
		}
		outputs
		{
			item 1 Moveables.babiesTiles_8,
		}
	}
*/

}