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; using Eco.Gameplay.Pipes.LiquidComponents; [RequiresSkill(typeof(PetrolRefiningSkill), 2)] public partial class BiodieselRecipe : Recipe { public BiodieselRecipe() { this.Products = new CraftingElement[] { new CraftingElement(), }; this.Ingredients = new CraftingElement[] { new CraftingElement(typeof(PetrolRefiningEfficiencySkill), 10, PetrolRefiningEfficiencySkill.MultiplicativeStrategy), }; this.CraftMinutes = CreateCraftTimeValue(typeof(BiodieselRecipe), Item.Get().UILink(), 2, typeof(PetrolRefiningSpeedSkill)); this.Initialize("Biodiesel", typeof(BiodieselRecipe)); CraftingComponent.AddRecipe(typeof(OilRefineryObject), this); } } [Serialized] [Solid] [RequiresSkill(typeof(PetrolRefiningEfficiencySkill), 2)] public partial class BiodieselBlock : PickupableBlock { } [Serialized] [MaxStackSize(10)] [Weight(30000)] [Fuel(60000)] [Currency] public partial class BiodieselItem : BlockItem { public override string FriendlyName { get { return "Biodiesel"; } } public override string FriendlyNamePlural { get { return "Biodiesel"; } } public override string Description { get { return "A vegetable or animal fat-based diesel fuel."; } } } }