using Terraria.ID; using Terraria; using Terraria.ModLoader; namespace CalamityMod.Items { public class AntiCystOintment : 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().disablePerfCystSpawns = true; } public override void AddRecipes() { CreateRecipe(). AddIngredient(ItemID.CrimtaneBar, 5). AddIngredient(ItemID.BottledWater). AddTile(TileID.Anvils). Register(); } } }