EcoGSCE-Modpack/AutoGen/Tool/UpgradeWoodenHoe.cs

42 lines
1.4 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.Players;
using Eco.Gameplay.Skills;
using Eco.Gameplay.Systems.TextLinks;
using Eco.Shared.Serialization;
using Eco.Shared.Utils;
using Eco.World;
using Eco.World.Blocks;
using Eco.Gameplay.Pipes;
[RequiresSkill(typeof(MetalworkingSkill), 3)]
public partial class UpgradeWoodenHoeRecipe : Recipe
{
public UpgradeWoodenHoeRecipe()
{
this.Products = new CraftingElement[]
{
new CraftingElement<IronHoeItem>(),
};
this.Ingredients = new CraftingElement[]
{
new CraftingElement<WoodenHoeItem>(1),
new CraftingElement<IronIngotItem>(typeof(MetalworkingEfficiencySkill), 20 ,MetalworkingEfficiencySkill.MultiplicativeStrategy)
};
this.CraftMinutes = new MultiDynamicValue(MultiDynamicOps.Multiply
, CreateCraftTimeValue(typeof(UpgradeWoodenHoeRecipe), Item.Get<IronHoeItem>().UILink(), .5f, typeof(MetalworkingSpeedSkill))
);
this.Initialize("Upgrade Wooden Hoe", typeof(UpgradeWoodenHoeRecipe));
CraftingComponent.AddRecipe(typeof(AnvilObject), this);
}
}
}