41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using Decimation.Lib.Items;
|
|
using Decimation.Lib.Util;
|
|
using Decimation.Lib.Util.Builder;
|
|
using Terraria;
|
|
using Terraria.ID;
|
|
using Terraria.ModLoader;
|
|
|
|
namespace Decimation.Content.Items.Potions
|
|
{
|
|
internal class EnchantedMushroom : DecimationPotion
|
|
{
|
|
protected override string ItemName => "Enchanted Mushroom";
|
|
protected override string ItemTooltip => "Cures poison \nGives Happy! buff";
|
|
protected override int BuffType => BuffID.Sunflower;
|
|
protected override int BuffTime => 7200;
|
|
protected override int HealLife => 90;
|
|
|
|
protected override void InitPotion()
|
|
{
|
|
item.value = Item.sellPrice(0, 0, 8);
|
|
item.rare = Rarity.Blue.GetRarityValue();
|
|
}
|
|
|
|
public override bool UseItem(Player player)
|
|
{
|
|
player.ClearBuff(BuffID.Poisoned);
|
|
return true;
|
|
}
|
|
|
|
protected override ModRecipe GetRecipe()
|
|
{
|
|
return new RecipeBuilder(this)
|
|
.WithIngredient(ItemID.Mushroom)
|
|
.WithIngredient(ItemID.GlowingMushroom)
|
|
.WithIngredient(ItemID.BottledHoney)
|
|
.WithIngredient(ItemID.FallenStar)
|
|
.WithStation(TileID.AlchemyTable)
|
|
.Build();
|
|
}
|
|
}
|
|
} |