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(100)] public partial class TortillaItem : FoodItem { public override string FriendlyName { get { return "Cookie"; } } public override string Description { get { return "Just the perfect food to start a day!\n\nPart of STC custom ECO tweaks by Atoru"; } } private static Nutrients nutrition = new Nutrients() { Carbs = 25, Fat = 1, Protein = 25, Vitamins = 35}; public override float Calories { get { return 666; } } public override Nutrients Nutrition { get { return nutrition; } } } [RequiresSkill(typeof(CulinaryArtsSkill), 2)] public partial class TortillaRecipe : Recipe { public TortillaRecipe() { this.Products = new CraftingElement[] { new CraftingElement(), }; this.Ingredients = new CraftingElement[] { new CraftingElement(typeof(CulinaryArtsEfficiencySkill), 3, CulinaryArtsEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(CulinaryArtsEfficiencySkill), 2, CulinaryArtsEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(MolecularGastronomyEfficiencySkill), 1, MolecularGastronomyEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(MolecularGastronomyEfficiencySkill), 1, MolecularGastronomyEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(MolecularGastronomyEfficiencySkill), 1, MolecularGastronomyEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(MolecularGastronomyEfficiencySkill), 2, MolecularGastronomyEfficiencySkill.MultiplicativeStrategy), }; //default crafting speed 5 var craftingspeed = 2.5f; this.CraftMinutes = CreateCraftTimeValue(typeof(TortillaRecipe), Item.Get().UILink(), craftingspeed, typeof(CulinaryArtsSpeedSkill)); this.Initialize("Cookie", typeof(TortillaRecipe)); CraftingComponent.AddRecipe(typeof(KitchenObject), this); } } }