54 lines
1.8 KiB
C#

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(AdvancedSmeltingSkill), 1)]
public partial class CharcoalRecipe : Recipe
{
public CharcoalRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<CharcoalItem>(2),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<LumberItem>(typeof(AlloySmeltingEfficiencySkill), 10, AlloySmeltingEfficiencySkill.MultiplicativeStrategy),
};
this.CraftMinutes = CreateCraftTimeValue(typeof(CharcoalRecipe), Item.Get<CharcoalItem>().UILink(), 1, typeof(AlloySmeltingEfficiencySkill));
this.Initialize("Charcoal", typeof(CharcoalRecipe));
CraftingComponent.AddRecipe(typeof(BlastFurnaceObject), this);
}
}
[Serialized]
[Weight(1000)]
[Fuel(25000)]
[Currency]
public partial class CharcoalItem :
Item
{
public override string FriendlyName { get { return "Charcoal"; } }
public override string Description { get { return "A black residue, consisting of carbon and any remaining ash."; } }
}
}