namespace Eco.Mods.TechTree
{
    using System.Collections.Generic;
    using System.Linq;
    using Eco.Gameplay.Components;
    using Eco.Gameplay.DynamicValues;
    using Eco.Gameplay.Items;
    using Eco.Gameplay.Players;
    using Eco.Gameplay.Skills;
    using Eco.Gameplay.Systems.TextLinks;
    using Eco.Mods.TechTree;
    using Eco.Shared.Items;
    using Eco.Shared.Localization;
    using Eco.Shared.Serialization;
    using Eco.Shared.Utils;
    using Eco.Shared.View;

    [Serialized]
    [Weight(200)]                                          
    public partial class EggItem :
        FoodItem            
    {
        public override string FriendlyName                     { get { return "Egg"; } }
		public override string FriendlyNamePlural               { get { return "Egg's"; } } 
        public override string Description                      { get { return "Egg's Gathered From The Chicken Coop."; } }

        private static Nutrients nutrition = new Nutrients()    { Carbs = 4, Fat = 5, Protein = 7, Vitamins = 1};
        public override float Calories                          { get { return 60; } }
        public override Nutrients Nutrition                     { get { return nutrition; } }
    }
	
    [RequiresSkill(typeof(BasicCraftingSkill), 4)]    
    public partial class EggsRecipe : Recipe
    {
        public EggsRecipe()
        {
            this.Products = new CraftingElement[]
            {
                new CraftingElement<EggItem>(12),
               
            };
            this.Ingredients = new CraftingElement[]
            {
                new CraftingElement<PlantFibersItem>(typeof(CulinaryArtsEfficiencySkill), 50, CulinaryArtsEfficiencySkill.MultiplicativeStrategy),
				new CraftingElement<WheatItem>(typeof(CulinaryArtsEfficiencySkill), 50, CulinaryArtsEfficiencySkill.MultiplicativeStrategy),
            };
            this.CraftMinutes = CreateCraftTimeValue(typeof(EggsRecipe), Item.Get<EggItem>().UILink(), 240, typeof(CulinaryArtsSpeedSkill));  
            this.Initialize("Dozen Egg's", typeof(EggsRecipe));
            CraftingComponent.AddRecipe(typeof(ChickenCoopObject), this);
        }
    }
}