using Terraria.ID; using Terraria; using Terraria.ModLoader; using CalamityMod.Items.Materials; namespace CalamityMod.Items { public class SirenproofEarMuffs : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Misc"; public override void SetDefaults() { Item.width = 44; Item.height = 34; Item.value = CalamityGlobalItem.Rarity1BuyPrice; Item.rare = ItemRarityID.Blue; } public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) { itemGroup = (ContentSamples.CreativeHelper.ItemGroup)CalamityResearchSorting.SpawnPrevention; } public override void UpdateInventory(Player player) { if (Item.favorited) player.Calamity().disableAnahitaSpawns = true; } public override void AddRecipes() { CreateRecipe(). AddIngredient(ItemID.FlinxFur, 2). AddIngredient(ItemID.Silk, 5). AddTile(TileID.Anvils). Register(); } } }