Rijam_RijamsMod/Items/Accessories/Melee/DaybreakStone.cs
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;

namespace RijamsMod.Items.Accessories.Melee
{
	//ModPlayer class handles the bools (RijamsModPlayer.cs)
	//GlobalItem class handles spawning the dust and light for swinging the sword (GlobalAccessoryItems.cs)
	//GlobalProjectile class handles spawning the dust and light for melee projectile (GlobalProjectiles.cs)
	//GlobalNPC class handles applying the debuff to enemies (RijamsModNPCs.cs)
	public class DaybreakStone : ModItem
	{
		public override void SetStaticDefaults()
		{
			// DisplayName.SetDefault("Daybreak Stone");
			// Tooltip.SetDefault("Melee attacks inflict Daybroken");
		}

		public override void SetDefaults()
		{
			//item.color = Color.Yellow; //colors the inventory sprite
			Item.width = 28;
			Item.height = 28;
			Item.rare = ItemRarityID.Cyan; //9
			Item.value = Item.sellPrice(0, 5, 0, 0);
			Item.accessory = true;
		}

		public override void UpdateAccessory(Player player, bool hideVisual)
		{
			player.GetModPlayer<RijamsModPlayer>().daybreakStone = true;
		}
		public override void AddRecipes()
		{
			CreateRecipe()
				.AddIngredient(ItemID.LunarBlockSolar, 50)
				.AddTile(TileID.TinkerersWorkbench)
				.Register();
		}
	}
}