Decimation_Mod/Content/Items/Tools/GreatwoodHammer.cs
2020-07-09 19:25:56 -04:00

40 lines
1.2 KiB
C#

using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Decimation.Lib.Util.Builder;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Tools
{
internal class GreatwoodHammer : DecimationTool
{
protected override string ItemName => "Greatwood Mallet";
protected override string ItemTooltip => "Who needs metal?";
protected override int MeleeDamages => 20;
protected override int HammerPower => 55;
protected override void InitTool()
{
item.width = 40;
item.height = 40;
item.useTime = 10;
item.useAnimation = 25;
item.knockBack = 5;
item.value = Item.sellPrice(copper: 50);
item.rare = Rarity.Green.GetRarityValue();
item.UseSound = SoundID.Item1;
}
protected override ModRecipe GetRecipe()
{
return new RecipeBuilder(this)
.WithIngredient(ItemID.WoodenHammer)
.WithIngredient(ItemID.BorealWoodHammer)
.WithIngredient(ItemID.ShadewoodHammer)
.WithIngredient(ItemID.PalmWoodHammer)
.WithStation(TileID.WorkBenches)
.Build();
}
}
}