Files
CalamityModPublic/Items/Accessories/BloodPact.cs
T
doze-zoze 1631666467 blood pact buff
blood pact was mathematically much worse than Charm of Myths. This brings the potion heal per second value between the two to be exactly the same, while leaving the difference in +1hp/s vs 25% max hp
2025-12-31 00:17:01 -06:00

34 lines
1.1 KiB
C#

using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.CalPlayer;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class BloodPact : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Accessories";
public override void SetDefaults()
{
Item.width = 26;
Item.height = 26;
Item.rare = ItemRarityID.Yellow;
Item.value = CalamityGlobalItem.RarityYellowBuyPrice;
Item.accessory = true;
Item.expert = true;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
modPlayer.bloodPact = true; // This applies the +25% health boost.
modPlayer.healingPotionMultiplier += 0.33f;
//Grants immunity to most Bleeding debuffs
player.buffImmune[BuffID.Bleeding] = true;
player.buffImmune[ModContent.BuffType<BurningBlood>()] = true;
player.buffImmune[ModContent.BuffType<HeavyBleeding>()] = true;
}
}
}