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 WholeMealMilkItem :
        FoodItem            
    {
        public override string FriendlyName                     { get { return "WholeMeal Milk"; } }
        public override string Description                      { get { return "Milked WholeMeal."; } }

        private static Nutrients nutrition = new Nutrients()    { Carbs = 4, Fat = 1, Protein = 4, Vitamins = 2};
        public override float Calories                          { get { return 55; } }
        public override Nutrients Nutrition                     { get { return nutrition; } }
    }

    [RequiresSkill(typeof(ZymologyBrewingSkill), 3)]   
    public partial class WholeMealMilkRecipe : Recipe
    {
        public WholeMealMilkRecipe()
        {
            this.Products = new CraftingElement[]
            {
                new CraftingElement<WholeMealMilkItem>(4),
               
            };
            this.Ingredients = new CraftingElement[]
            {
                new CraftingElement<WholeMealItem>(typeof(MillProcessingEfficiencySkill), 10, MillProcessingEfficiencySkill.MultiplicativeStrategy),
                new CraftingElement<CornSyrupItem>(typeof(ZymologyEfficiencySkill), 20, ZymologyEfficiencySkill.MultiplicativeStrategy), 				
            };
            this.CraftMinutes = CreateCraftTimeValue(typeof(WholeMealMilkRecipe), Item.Get<WholeMealMilkItem>().UILink(), 30, typeof(CulinaryArtsSpeedSkill)); 
            this.Initialize("WholeMeal Milk", typeof(WholeMealMilkRecipe));
            CraftingComponent.AddRecipe(typeof(FermentingBarrelObject), this);
        }
    }
}