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.Localization;
    using Eco.Shared.Items;
    using Eco.Shared.Serialization;
    using Eco.Shared.Utils;
    using Eco.Shared.View;
    
    [Serialized]
    [Weight(100)]                                          
    public partial class FatPillItem :
        FoodItem            
    {
        public override string FriendlyName                     { get { return "Fat Pills"; } }
        public override string Description                      { get { return "Pure Fat!"; } }

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

    [RequiresSkill(typeof(MolecularGastronomySkill), 3)]    
    public partial class FatPillRecipe : Recipe
    {
        public FatPillRecipe()
        {
            this.Products = new CraftingElement[]
            {
                new CraftingElement<FatPillItem>(10),
               
            };
            this.Ingredients = new CraftingElement[]
            {
                new CraftingElement<MaltodextrinItem>(typeof(MolecularGastronomyEfficiencySkill), 10, MolecularGastronomyEfficiencySkill.MultiplicativeStrategy), 
            };
            this.CraftMinutes = CreateCraftTimeValue(typeof(FatPillRecipe), Item.Get<FatPillItem>().UILink(), 20, typeof(MolecularGastronomySpeedSkill)); 
            this.Initialize("Fat Pills", typeof(FatPillRecipe));
            CraftingComponent.AddRecipe(typeof(LaboratoryObject), this);
        }
    }
}