41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using Decimation.Content.Buffs.Buffs;
|
|
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 CommanderPotion : DecimationPotion
|
|
{
|
|
protected override string ItemName => "Commander Potion";
|
|
|
|
protected override string ItemTooltip =>
|
|
"Increases your max number of minions by 1 \nMinions damages +10% \nMinions knockback +10%";
|
|
|
|
protected override int BuffType => ModContent.BuffType<Commander>();
|
|
protected override int BuffTime => 36000;
|
|
|
|
protected override void InitPotion()
|
|
{
|
|
item.width = 24;
|
|
item.height = 32;
|
|
item.rare = Rarity.Orange.GetRarityValue();
|
|
item.value = Item.sellPrice(silver: 62);
|
|
}
|
|
|
|
protected override ModRecipe GetRecipe()
|
|
{
|
|
return new RecipeBuilder(this)
|
|
.WithIngredient(ItemID.SummoningPotion)
|
|
.WithIngredient(ItemID.SoulofFlight, 20)
|
|
.WithIngredient(ItemID.VariegatedLardfish)
|
|
.WithIngredient(ItemID.MagicPowerPotion, 2)
|
|
.WithIngredient(ItemID.RottenChunk, 2)
|
|
.WithIngredient(TileID.AlchemyTable)
|
|
.Build();
|
|
}
|
|
}
|
|
} |