Decimation_Mod/Content/Items/Tools/Axes/GreatwoodAxe.cs
2020-07-19 19:05:58 -04:00

37 lines
1.1 KiB
C#

using Decimation.Lib.Items;
using Decimation.Lib.Util.Builder;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Tools.Axes
{
public class GreatwoodAxe : DecimationTool
{
protected override string ItemName => "Greatwood Axe";
protected override int AxePower => 50;
protected override int MeleeDamages => 6;
protected override void InitTool()
{
item.width = 48;
item.height = 36;
item.knockBack = 4.5f;
item.value = Item.sellPrice(copper: 40);
item.useTime = 20;
item.useAnimation = 28;
item.crit = 4;
}
protected override ModRecipe GetRecipe()
{
return new RecipeBuilder(this)
.WithIngredient(ModContent.ItemType<BorealWoodAxe>())
.WithIngredient(ModContent.ItemType<PalmWoodAxe>())
.WithIngredient(ModContent.ItemType<RichMahoganyAxe>())
.WithIngredientGroup(DecimationRecipeGroupID.CorruptedWoodAxes)
.WithStation(TileID.WorkBenches)
.Build();
}
}
}