38 lines
1.1 KiB
C#
38 lines
1.1 KiB
C#
using CalamityMod.Items.Placeables.FurnitureAcidwood;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Tools
|
|
{
|
|
public class AcidwoodHammer : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Tools";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.damage = 10;
|
|
Item.knockBack = 3.5f;
|
|
Item.useTime = 9;
|
|
Item.useAnimation = 20;
|
|
Item.hammer = 25;
|
|
|
|
Item.DamageType = DamageClass.Melee;
|
|
Item.width = 40;
|
|
Item.height = 40;
|
|
Item.useTurn = true;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.value = Item.sellPrice(copper: 10);
|
|
Item.rare = ItemRarityID.White;
|
|
Item.UseSound = SoundID.Item1;
|
|
Item.autoReuse = true;
|
|
}
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<Acidwood>(8).
|
|
AddTile(TileID.WorkBenches).
|
|
Register();
|
|
}
|
|
}
|
|
}
|