57 lines
1.7 KiB
C#
57 lines
1.7 KiB
C#
using CalamityMod.Items.Materials;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Tools
|
|
{
|
|
public class GallantPickaxe : ModItem
|
|
{
|
|
public override void SetStaticDefaults()
|
|
{
|
|
DisplayName.SetDefault("Genesis Pickaxe");
|
|
Tooltip.SetDefault("Can mine Uelibloom Ore");
|
|
}
|
|
|
|
public override void SetDefaults()
|
|
{
|
|
item.damage = 80;
|
|
item.melee = true;
|
|
item.width = 84;
|
|
item.height = 80;
|
|
item.useTime = 7;
|
|
item.useAnimation = 14;
|
|
item.useTurn = true;
|
|
item.pick = 225;
|
|
item.useStyle = ItemUseStyleID.SwingThrow;
|
|
item.knockBack = 5.5f;
|
|
item.value = Item.buyPrice(1, 0, 0, 0);
|
|
item.rare = 10;
|
|
item.UseSound = SoundID.Item1;
|
|
item.autoReuse = true;
|
|
item.tileBoost += 6;
|
|
item.useTurn = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
ModRecipe recipe = new ModRecipe(mod);
|
|
recipe.AddIngredient(ModContent.ItemType<MeldiateBar>(), 9);
|
|
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
|
|
recipe.AddIngredient(ItemID.LunarBar, 10);
|
|
recipe.AddTile(TileID.LunarCraftingStation);
|
|
recipe.SetResult(this);
|
|
recipe.AddRecipe();
|
|
}
|
|
|
|
public override void MeleeEffects(Player player, Rectangle hitbox)
|
|
{
|
|
if (Main.rand.NextBool(5))
|
|
{
|
|
int dust = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, 62);
|
|
}
|
|
}
|
|
}
|
|
}
|