42 lines
1.5 KiB
C#
42 lines
1.5 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(SteelworkingSkill), 4)]
|
|
public partial class UpgradeIronHammerRecipe : Recipe
|
|
{
|
|
public UpgradeIronHammerRecipe()
|
|
{
|
|
this.Products = new CraftingElement[]
|
|
{
|
|
new CraftingElement<SteelHammerItem>(),
|
|
};
|
|
this.Ingredients = new CraftingElement[]
|
|
{
|
|
new CraftingElement<IronHammerItem>(1),
|
|
new CraftingElement<SteelItem>(typeof(SteelworkingEfficiencySkill), 20 ,SteelworkingEfficiencySkill.MultiplicativeStrategy)
|
|
};
|
|
this.CraftMinutes = new MultiDynamicValue(MultiDynamicOps.Multiply
|
|
, CreateCraftTimeValue(typeof(UpgradeIronHammerRecipe), Item.Get<SteelHammerItem>().UILink(), .5f, typeof(SteelworkingSpeedSkill))
|
|
|
|
);
|
|
this.Initialize("Upgrade Iron Hammer", typeof(UpgradeIronHammerRecipe));
|
|
|
|
CraftingComponent.AddRecipe(typeof(AnvilObject), this);
|
|
}
|
|
}
|
|
} |