This commit formats the entire codebase according to `dotnet format` and its limited understanding of our provided `.editorconfig`.
51 lines
1.5 KiB
C#
51 lines
1.5 KiB
C#
using CalamityMod.Items.Materials;
|
|
using Microsoft.Xna.Framework;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace CalamityMod.Items.Tools
|
|
{
|
|
public class AerialHamaxe : ModItem, ILocalizedModType
|
|
{
|
|
public new string LocalizationCategory => "Items.Tools";
|
|
public override void SetDefaults()
|
|
{
|
|
Item.width = 44;
|
|
Item.height = 44;
|
|
Item.damage = 20;
|
|
Item.knockBack = 7f;
|
|
Item.useTime = 16;
|
|
Item.useAnimation = 26;
|
|
Item.hammer = 70;
|
|
Item.axe = 125 / 5;
|
|
Item.tileBoost += 1;
|
|
|
|
Item.DamageType = DamageClass.Melee;
|
|
Item.useTurn = true;
|
|
Item.useStyle = ItemUseStyleID.Swing;
|
|
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
|
Item.rare = ItemRarityID.Orange;
|
|
Item.UseSound = SoundID.Item1;
|
|
Item.autoReuse = true;
|
|
}
|
|
|
|
public override void AddRecipes()
|
|
{
|
|
CreateRecipe().
|
|
AddIngredient<AerialiteBar>(6).
|
|
AddIngredient(ItemID.SunplateBlock, 5).
|
|
AddTile(TileID.SkyMill).
|
|
Register();
|
|
}
|
|
|
|
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, DustID.BlueTorch);
|
|
}
|
|
}
|
|
}
|
|
}
|