using Decimation.Lib.Items; using Terraria; using Terraria.ID; using Terraria.ModLoader; namespace Decimation.Content.Items.Potions { // Not an actual potion, since it doesn't give the player any buff. internal class Antidote : DecimationItem { protected override string ItemName => "Antidote"; protected override string ItemTooltip => "Cure poison and venom."; protected override void Init() { item.width = 20; item.height = 26; item.maxStack = 30; item.consumable = true; item.useAnimation = 17; item.useTime = 17; item.useTurn = true; item.useStyle = 2; } public override bool UseItem(Player player) { player.ClearBuff(BuffID.Poisoned); player.ClearBuff(BuffID.Venom); return true; } protected override ModRecipe GetRecipe() { ModRecipe recipe = GetNewModRecipe(this, 1, TileID.AlchemyTable); recipe.AddIngredient(ItemID.Waterleaf); recipe.AddIngredient(ItemID.Moonglow); recipe.AddIngredient(ItemID.BottledHoney); return recipe; } } }