Files
CalamityModPublic/Items/Potions/TeslaPotion.cs
T
Andrew Marheine 925f6f0247 1 - Bosses are now affected by slowing debuffs but gain a 20 second immunity to them after they wear off.
2 - Reduced the duration of most slowing debuffs.
3 - Cal Clone Soul Seekers cannot fire while she's doing a bullet hell.
4 - Reworked enemy and boss debuff immunities to make more sense.
5 - Increased Aquatic Scourge and Desert Scourge HP because they're now vulnerable to debuffs.
6 - Reduced the damage of Bloodflare ranged set bonus phantoms.
7 - Adjusted DoG's fireball explosion spread.
8 - Leviathan hitboxes should work properly now.
9 - Sun Bats no longer derp out.
2021-05-18 00:57:06 -05:00

55 lines
1.5 KiB
C#

using CalamityMod.Buffs.Potions;
using CalamityMod.Items.Materials;
using CalamityMod.Items.Placeables;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions
{
public class TeslaPotion : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Tesla Potion");
Tooltip.SetDefault("Summons an aura of electricity that electrifies and slows enemies\n" +
"Aura damage is reduced on bosses\n" +
"Reduces the duration of the Electrified debuff");
}
public override void SetDefaults()
{
item.width = 24;
item.height = 26;
item.useTurn = true;
item.maxStack = 999;
item.rare = ItemRarityID.Orange;
item.useAnimation = 17;
item.useTime = 17;
item.useStyle = ItemUseStyleID.EatingUsing;
item.UseSound = SoundID.Item3;
item.consumable = true;
item.buffType = ModContent.BuffType<TeslaBuff>();
item.buffTime = CalamityUtils.SecondsToFrames(480f);
item.value = Item.buyPrice(0, 2, 0, 0);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddIngredient(ModContent.ItemType<SeaPrism>());
recipe.AddRecipeGroup("AnyGoldOre", 2);
recipe.AddTile(TileID.Bottles);
recipe.SetResult(this);
recipe.AddRecipe();
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 10);
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}