Rijam_RijamsMod/Items/Weapons/Magic/SulfuricIncursion.cs
using RijamsMod.Projectiles.Magic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using Microsoft.Xna.Framework;
using Terraria.DataStructures;
using Terraria.GameContent.Drawing;

namespace RijamsMod.Items.Weapons.Magic
{
	public class SulfuricIncursion : ModItem
	{
		public override void SetStaticDefaults()
		{
			// Tooltip.SetDefault("Summons balls of sulfur that travel through tiles\nInflicts Sulfuric Acid");
		}

		public override void SetDefaults()
		{
			Item.damage = 33;
			Item.noMelee = true;
			Item.DamageType = DamageClass.Magic;
			Item.mana = 8;
			Item.rare = ItemRarityID.LightRed;
			Item.width = 28;
			Item.height = 30;
			Item.useTime = 14;
			Item.knockBack = 2;
			Item.UseSound = SoundID.Item8;
			Item.useStyle = ItemUseStyleID.Shoot;
			Item.shootSpeed = 6f;
			Item.useAnimation = 14;
			Item.autoReuse = true;
			Item.shoot = ModContent.ProjectileType<SulfurSphere>();
			Item.value = Item.sellPrice(gold: 2);
		}
		public override void AddRecipes()
		{
			CreateRecipe()
				.AddIngredient(ItemID.SpellTome, 1)
				.AddIngredient(ModContent.ItemType<Items.Materials.Sulfur>(), 20)
				.AddIngredient(ItemID.SoulofLight, 15)
				.AddIngredient(ModContent.ItemType<Items.Materials.InfernicFabric>(), 3)
				.AddTile(TileID.Bookcases)
				.Register();
		}

		public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
		{
			ParticleOrchestrator.RequestParticleSpawn(clientOnly: true, ParticleOrchestraType.AshTreeShake, new ParticleOrchestraSettings
			{
				PositionInWorld = player.HandPosition ?? player.Center,
				MovementVector = Vector2.Zero
			});
			return true;
		}

		public override Vector2? HoldoutOffset()
		{
			return new Vector2(3, 0);
		}
	}
}
