Decimation_Mod/Content/Items/Weapons/GreatwoodSword.cs
2020-07-09 19:30:05 -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.Weapons
{
internal class GreatwoodSword : DecimationWeapon
{
protected override string ItemName => "The Greatwood Sword";
protected override string ItemTooltip => "Who needs metal?";
protected override int Damages => 20;
protected override void InitWeapon()
{
item.width = 48;
item.height = 48;
item.useTime = 25;
item.useAnimation = 25;
item.knockBack = 5;
item.value = Item.sellPrice(silver: 80);
item.rare = Rarity.Green.GetRarityValue();
item.autoReuse = true;
item.expert = false;
}
protected override ModRecipe GetRecipe()
{
return new RecipeBuilder(this)
.WithIngredient(ItemID.WoodenSword)
.WithIngredient(ItemID.BorealWoodSword)
.WithIngredient(ItemID.ShadewoodSword)
.WithIngredient(ItemID.PalmWoodSword)
.WithStation(TileID.WorkBenches)
.Build();
}
}
}