- Added support for animated projectiles - Refactoring - Removed useless fields - Fixed swords not dealing damages - Added Hour Hand (from Evie's PR)
44 lines
1.2 KiB
C#
44 lines
1.2 KiB
C#
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 = 20;
|
|
this.item.maxStack = 30;
|
|
item.consumable = true;
|
|
item.useAnimation = 17;
|
|
item.useTime = 17;
|
|
this.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;
|
|
}
|
|
}
|
|
} |