namespace Eco.Mods.TechTree { using System; using System.Collections.Generic; using System.ComponentModel; using Eco.Gameplay.Blocks; using Eco.Gameplay.Components; using Eco.Gameplay.DynamicValues; using Eco.Gameplay.Items; using Eco.Gameplay.Objects; using Eco.Gameplay.Players; using Eco.Gameplay.Skills; using Eco.Gameplay.Systems.TextLinks; using Eco.Shared.Localization; using Eco.Shared.Serialization; using Eco.Shared.Utils; using Eco.World; using Eco.World.Blocks; using Eco.Gameplay.Pipes; [RequiresSkill(typeof(MechanicalEngineeringSkill), 3)] public partial class CombustionEngineRecipe : Recipe { public CombustionEngineRecipe() { this.Products = new CraftingElement[] { new CraftingElement(), }; this.Ingredients = new CraftingElement[] { new CraftingElement(typeof(MechanicsAssemblyEfficiencySkill), 10, MechanicsAssemblyEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(MechanicsAssemblyEfficiencySkill), 5, MechanicsAssemblyEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(MechanicsAssemblyEfficiencySkill), 20, MechanicsAssemblyEfficiencySkill.MultiplicativeStrategy), new CraftingElement(typeof(MechanicsAssemblyEfficiencySkill), 5, MechanicsAssemblyEfficiencySkill.MultiplicativeStrategy), }; this.CraftMinutes = CreateCraftTimeValue(typeof(CombustionEngineRecipe), Item.Get().UILink(), 5, typeof(MechanicsAssemblySpeedSkill)); this.Initialize("Combustion Engine", typeof(CombustionEngineRecipe)); CraftingComponent.AddRecipe(typeof(MachineShopObject), this); } } [Serialized] [Weight(1000)] [Currency] public partial class CombustionEngineItem : Item { public override string FriendlyName { get { return "Combustion Engine"; } } public override string Description { get { return "An engine that generates power by combustion of fuel."; } } } }