Files
CalamityModPublic/Items/Potions/ProfanedRagePotion.cs
T
Andrew Marheine 5cbca25f5f 1 - Movement speed nerfs on several armor sets, Shattered Community and all prefixes. Buffed some armor pieces to compensate.
2 - Holy Wrath and Profaned Rage no longer provide movement speed.
3 - Holy Wrath no longer provides horizontal flight speed.
4 - Mirage Jellys can now be hit at all times, even while they're teleporting.
5 - King Slime Jewel can now be killed.
6 - Profaned Energy Lanterns no longer deal contact damage.
7 - Plague Mines can now be damaged at all times.
2022-01-08 16:17:43 -06:00

56 lines
2.0 KiB
C#

using CalamityMod.Buffs.Potions;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions
{
public class ProfanedRagePotion : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Profaned Rage Potion");
Tooltip.SetDefault("Increases critical strike chance by 12% and increases horizontal flight speed by 5%\n" +
"While this potion's buff is active the Rage Potion's buff is disabled");
}
public override void SetDefaults()
{
item.width = 34;
item.height = 42;
item.useTurn = true;
item.maxStack = 30;
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<ProfanedRageBuff>();
item.buffTime = CalamityUtils.SecondsToFrames(300f);
item.value = Item.buyPrice(0, 2, 0, 0);
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.RagePotion);
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>());
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
recipe.AddTile(TileID.AlchemyTable);
recipe.alchemy = true;
recipe.SetResult(this);
recipe.AddRecipe();
// Blood orb recipe = no alchemy table effect
recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.BottledWater);
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 40);
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>());
recipe.AddTile(TileID.AlchemyTable);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}