Decimation_Mod/Content/Items/Tools/MultigrainHammer.cs
FyloZ 884e67c5e2 Updated some potions's sprite.
Changed buy price to sell price.
2020-07-09 18:03:44 -04:00

42 lines
1.3 KiB
C#

using Decimation.Lib.Items;
using Decimation.Lib.Util;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace Decimation.Content.Items.Tools
{
internal class MultigrainHammer : DecimationTool
{
protected override string ItemName => "Multigrain Hamaxe";
protected override string ItemTooltip => "Smells like honeysuckle";
protected override int MeleeDamages => 20;
protected override int HammerPower => 67;
protected override int AxePower => 13;
protected override void InitTool()
{
item.width = 32;
item.height = 32;
item.useTime = 20;
item.useAnimation = 20;
this.item.knockBack = 5;
item.value = Item.sellPrice(0, 0, 10);
item.rare = Rarity.Green.GetRarityValue();
this.item.crit = 3;
item.UseSound = SoundID.Item1;
}
protected override ModRecipe GetRecipe()
{
ModRecipe recipe = GetNewModRecipe(this, 1, TileID.Loom);
recipe.AddIngredient(null, "GreatwoodHammer");
recipe.AddIngredient(ItemID.CactusPickaxe);
recipe.AddIngredient(ItemID.Pumpkin, 10);
recipe.AddIngredient(ItemID.Vine, 2);
return recipe;
}
}
}