Files
CalamityModPublic/Items/Potions/ZergPotion.cs
T
2019-10-23 14:21:03 -05:00

54 lines
1.7 KiB
C#

using CalamityMod.Buffs.Potions;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions
{
public class ZergPotion : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Zerg Potion");
Tooltip.SetDefault("Boosts spawn rates...a lot...");
}
public override void SetDefaults()
{
item.width = 28;
item.height = 18;
item.useTurn = true;
item.maxStack = 999;
item.rare = 3;
item.useAnimation = 17;
item.useTime = 17;
item.useStyle = 2;
item.UseSound = SoundID.Item3;
item.consumable = true;
item.buffType = ModContent.BuffType<Zerg>();
item.buffTime = 36000;
item.value = Item.buyPrice(0, 2, 0, 0);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>(), 3);
recipe.AddIngredient(ModContent.ItemType<MurkySludge>(), 2);
recipe.AddIngredient(ModContent.ItemType<DemonicBoneAsh>());
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 20);
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>());
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}