Files
CalamityModPublic/Items/Potions/ProfanedRagePotion.cs
T

55 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 movement and horizontal flight speed by 5%\n" +
"In Revengeance Mode you gain more rage when damaged\n" +
"While this potion's buff is active the Rage Potion's buff is disabled");
}
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<ProfanedRageBuff>();
item.buffTime = 10800;
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.SetResult(this);
recipe.AddRecipe();
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();
}
}
}