Commit of decompiled and "updated" code.
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace FabusMod.Items.Tools;
|
||||
|
||||
public class GoldenDiggingClaw : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Golden Digging Claw");
|
||||
Tooltip.SetDefault("[c/FF3C2B:Mining speed too high may result in no funcionality]");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = 60;
|
||||
Item.width = 38;
|
||||
Item.height = 38;
|
||||
Item.useTime = 3;
|
||||
Item.useAnimation = 9;
|
||||
Item.pick = 210;
|
||||
Item.axe = 28;
|
||||
Item.tileBoost = 6;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 6f;
|
||||
Item.value = Item.sellPrice(0, 18, 0, 0);
|
||||
Item.rare = ItemRarityID.Red;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
Recipe val = CreateRecipe();
|
||||
val.AddIngredient(ItemID.ShroomiteDiggingClaw);
|
||||
val.AddIngredient(ModContent.ItemType<Items.CraftingIngredients.GoddessGold>(), 18);
|
||||
val.AddIngredient(ItemID.LunarBar, 22);
|
||||
val.AddIngredient(ItemID.FragmentSolar, 8);
|
||||
val.AddIngredient(ItemID.FragmentNebula, 8);
|
||||
val.AddIngredient(ItemID.FragmentStardust, 8);
|
||||
val.AddIngredient(ItemID.FragmentVortex, 8);
|
||||
val.AddTile(TileID.LunarCraftingStation);
|
||||
val.Register();
|
||||
}
|
||||
|
||||
public override void MeleeEffects(Player player, Rectangle hitbox)
|
||||
{
|
||||
if (Main.rand.NextBool(3))
|
||||
{
|
||||
int num1 = Dust.NewDust(new Vector2(hitbox.X, hitbox.Y), hitbox.Width, hitbox.Height, ModContent.DustType<Dusts.MeatDust>());
|
||||
Main.dust[num1].scale = 1f;
|
||||
Main.dust[num1].velocity.Y = 0f;
|
||||
Main.dust[num1].velocity.X = 0.5f;
|
||||
Main.dust[num1].noGravity = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user