Files
CalamityModPublic/Items/Potions/TriumphPotion.cs
T
pixlgray 5766e8639a Completed several community suggestions, including:
-- Renamed "Victory Shard" to "Pearl Shard", including dependencies
-- Tweaked Profaned Core's tooltip to mention Providence's drop change depending on the biome she's in
-- Added chat messages notifying the player if they've already consumed a perma HP/MP upgrade.
2022-07-05 02:25:12 -04:00

51 lines
1.5 KiB
C#

using CalamityMod.Buffs.Potions;
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Potions
{
public class TriumphPotion : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 20;
DisplayName.SetDefault("Triumph Potion");
Tooltip.SetDefault("Enemy contact damage is reduced, the lower their health the more it is reduced");
}
public override void SetDefaults()
{
Item.width = 28;
Item.height = 18;
Item.useTurn = true;
Item.maxStack = 30;
Item.value = Item.buyPrice(0, 2, 0, 0);
Item.rare = ItemRarityID.Green;
Item.useAnimation = 17;
Item.useTime = 17;
Item.useStyle = ItemUseStyleID.DrinkLiquid;
Item.UseSound = SoundID.Item3;
Item.consumable = true;
Item.buffType = ModContent.BuffType<TriumphBuff>();
Item.buffTime = CalamityUtils.SecondsToFrames(240f);
}
public override void AddRecipes()
{
CreateRecipe().
AddIngredient(ItemID.BottledWater).
AddIngredient<PearlShard>(3).
AddTile(TileID.Bottles).
Register();
CreateRecipe().
AddIngredient(ItemID.BottledWater).
AddIngredient<BloodOrb>(30).
AddTile(TileID.AlchemyTable).
Register();
}
}
}