Note: Does not include item rarities, and appears to shown nonexistant using directive movement in the commit. This does not really affect anything, however.
54 lines
1.6 KiB
C#
54 lines
1.6 KiB
C#
using CalamityMod.Items.Materials;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Tools
|
|
{
|
|
public class SkyfringePickaxe : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Skyfringe Pickaxe");
|
|
Tooltip.SetDefault("Able to mine Hellstone");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 12;
|
|
item.melee = true;
|
|
item.width = 44;
|
|
item.height = 44;
|
|
item.useTime = 14;
|
|
item.useAnimation = 16;
|
|
item.useTurn = true;
|
|
item.pick = 95;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.knockBack = 2.5f;
|
|
item.value = Item.buyPrice(0, 4, 0, 0);
|
|
item.rare = 3;
|
|
item.UseSound = SoundID.Item1;
|
|
item.autoReuse = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<AerialiteBar>(), 7);
|
|
recipe.AddIngredient(ItemID.SunplateBlock, 3);
|
|
recipe.AddTile(TileID.SkyMill);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
|
|
public override void MeleeEffects(Player player, Rectangle hitbox)
|
|
{
|
|
if (Main.rand.NextBool(3))
|
|
{
|
|
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 59);
|
|
}
|
|
}
|
|
}
|
|
}
|