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(500)]                                          
    public partial class BatterItem :
        FoodItem            
    {
        public override string FriendlyName                     { get { return "Batter"; } }
        public override string Description                      { get { return "Batter"; } }

        private static Nutrients nutrition = new Nutrients()    { Carbs = 4, Fat = 6, Protein = 9, Vitamins = 3};
        public override float Calories                          { get { return 450; } }
        public override Nutrients Nutrition                     { get { return nutrition; } }
    }

    [RequiresSkill(typeof(CulinaryArtsSkill), 2)]    
    public partial class BatterRecipe : Recipe
    {
        public BatterRecipe()
        {
            this.Products = new CraftingElement[]
            {
                new CraftingElement<BatterItem>(),
               
            };
            this.Ingredients = new CraftingElement[]
            {
                new CraftingElement<FlourItem>(typeof(CulinaryArtsEfficiencySkill), 10, CulinaryArtsEfficiencySkill.MultiplicativeStrategy),
                new CraftingElement<WholeMealMilkItem>(typeof(CulinaryArtsEfficiencySkill), 6, CulinaryArtsEfficiencySkill.MultiplicativeStrategy),
            };
            this.CraftMinutes = CreateCraftTimeValue(typeof(BatterRecipe), Item.Get<BatterItem>().UILink(), 8, typeof(CulinaryArtsSpeedSkill));
            this.Initialize("Batter", typeof(BatterRecipe));
            CraftingComponent.AddRecipe(typeof(KitchenObject), this);
        }
    }
}