Files
CalamityModPublic/Items/Accessories/BloodPact.cs
T

36 lines
1.1 KiB
C#

using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ModLoader;
using Terraria.ID;
namespace CalamityMod.Items.Accessories
{
public class BloodPact : ModItem
{
public override void SetStaticDefaults()
{
SacrificeTotal = 1;
DisplayName.SetDefault("Blood Pact");
Tooltip.SetDefault("Doubles your max HP\n" +
"Allows you to be critically hit 25% of the time\n" +
"After a critical hit, you gain various buffs for ten seconds\n" +
"Any healing potions consumed during this time period heal 50% more health");
}
public override void SetDefaults()
{
Item.width = 26;
Item.height = 26;
Item.rare = ItemRarityID.Yellow;
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
Item.accessory = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.bloodPact = true;
}
}
}