// Copyright (c) Strange Loop Games. All rights reserved.
// See LICENSE file in the project root for full license information.
// <auto-generated />

namespace Eco.Mods.TechTree
{
        using System.Collections.Generic;
    using Eco.Gameplay.Blocks;
    using Eco.Core.Items;
    using Eco.Gameplay.Components;
    using Eco.Gameplay.DynamicValues;
    using Eco.Gameplay.Items;
    using Eco.Gameplay.Items.SearchAndSelect;
    using Eco.Gameplay.Skills;
    using Eco.Gameplay.Systems;
    using Eco.Gameplay.Systems.TextLinks;
    using Eco.Mods.TechTree;
    using Eco.Shared.Localization;
    using Eco.Shared.Serialization;
    using Eco.Shared.Utils;
    using Eco.World;
    using Eco.World.Blocks;
    using Gameplay.Players;
    using System.ComponentModel;

    [Serialized]
    [LocDisplayName("Pineapple Seed")]
    [Weight(50)]  
    [StartsDiscovered]
    [Tag("Crop Seed", 1)]                                 
    public partial class PineappleSeedItem : SeedItem
    {
        static PineappleSeedItem() { }
        
        private static Nutrients nutrition = new Nutrients() { Carbs = 0, Fat = 0, Protein = 0, Vitamins = 0 };

        public override LocString DisplayDescription { get { return Localizer.DoStr("Plant to grow a pineapple plant."); } }
        public override LocString SpeciesName        { get { return Localizer.DoStr("Pineapple"); } }

        public override float Calories { get { return 0; } }
        public override Nutrients Nutrition { get { return nutrition; } }
    }


    [Serialized]
    [LocDisplayName("Pineapple Seed Pack")]
    [Category("Hidden")]
    [Weight(50)]  
    public partial class PineappleSeedPackItem : SeedPackItem
    {
        static PineappleSeedPackItem() { }

        public override LocString DisplayDescription { get { return Localizer.DoStr("Plant to grow a pineapple plant."); } }
        public override LocString SpeciesName        { get { return Localizer.DoStr("Pineapple"); } }
    }

    [RequiresSkill(typeof(FarmingSkill), 1)]    
    public partial class PineappleSeedRecipe : RecipeFamily
    {
        public PineappleSeedRecipe()
        {
            this.Recipes = new List<Recipe>
            {
                new Recipe(
                    "PineappleSeed",
                    Localizer.DoStr("Pineapple Seed"),
                    new IngredientElement[]
                    {
               new IngredientElement(typeof(PineappleItem), 1, typeof(FarmingSkill), typeof(FarmingLavishResourcesTalent)),   
                    },
                new CraftingElement<PineappleSeedItem>()
                )
            };
            this.LaborInCalories = CreateLaborInCaloriesValue(40, typeof(FarmingSkill)); 
            this.CraftMinutes = CreateCraftTimeValue(typeof(PineappleSeedRecipe), 1, typeof(FarmingSkill), typeof(FarmingFocusedSpeedTalent), typeof(FarmingParallelSpeedTalent));    
            this.ModsPreInitialize();
            this.Initialize(Localizer.DoStr("Pineapple Seed"), typeof(PineappleSeedRecipe));
            this.ModsPostInitialize();
            CraftingComponent.AddRecipe(typeof(FarmersTableObject), this);
        }

        /// <summary>Hook for mods to customize RecipeFamily before initialization. You can change recipes, xp, labor, time here.</summary>
        partial void ModsPreInitialize();

        /// <summary>Hook for mods to customize RecipeFamily after initialization, but before registration. You can change skill requirements here.</summary>
        partial void ModsPostInitialize();
    }
}
