- no more regentime boost
- stronger natural regen mult
- 25% potion sickness cooldown reduction instead of 50% potion value
This commit is contained in:
Doze-Zoze committed 2026-07-20 13:50:11 -05:00
1 parent 470fdc3502
commit c5d557e216
2 files changed
+25 -8

No files matched your search

-3
View File
@@ -502,9 +502,6 @@ namespace CalamityMod.CalPlayer
if (livingDew)
Player.lifeRegenTime += LivingDew.RegenTimeBoost;
if (Player.HasBuff<FulfilledContract>())
Player.lifeRegenTime += ThePact.RegenTimeBoost;
if (aAmpoule)
{
Player.lifeRegen += (int)Math.Round(MathHelper.Lerp(AmbrosialAmpoule.MaxRegenBoost, AmbrosialAmpoule.MinRegenBoost, lifeRatio));
+25 -5
View File
@@ -1,4 +1,7 @@
using Microsoft.Xna.Framework;
using CalamityMod.Buffs.DamageOverTime;
using CalamityMod.Buffs.StatBuffs;
using CalamityMod.Systems.Collections;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.DataStructures;
@@ -16,17 +19,16 @@ namespace CalamityMod.Items.Accessories
public static float MaxLifeMult => 2;
public static float ChanceToBeCrit => 0.25f;
public static float CritDmgTaken => 2.25f;
public static float HealingPotionBoost => 1.5f;
public static int BoostDuration => 900;
public static int DebuffInflictionDuration => 60;
public static float NaturalRegenBoost => 1.5f;
public static int RegenTimeBoost => 3;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxLifeMult,ChanceToBeCrit.ToPercent(),CritDmgTaken);
public static float NaturalRegenBoost => 1.75f;
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(MaxLifeMult, ChanceToBeCrit.ToPercent(), CritDmgTaken);
public override void SetStaticDefaults()
{
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(4, 4));
ItemID.Sets.AnimatesAsSoul[Type] = true;
CalamityItemSets.ExtraDebuffTooltip_Enemy[Type] = [ModContent.BuffType<Laceration>()];
}
public override void SetDefaults()
@@ -41,6 +43,24 @@ namespace CalamityMod.Items.Accessories
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.Calamity().CanBeCritByThePact = true;
if (player.HasBuff<FulfilledContract>() && player.miscCounter % 3 == 0 && player.potionDelay > 0)
{
player.potionDelay -= 1;
if (player.potionDelay < 0)
player.potionDelay = 0;
if (player.HasBuff(BuffID.PotionSickness))
{
for (var i = 0; i < player.buffType.Length; i++)
{
if (player.buffType[i] == BuffID.PotionSickness)
{
player.buffTime[i] = player.potionDelay;
}
}
}
}
}
}
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frame, Color drawColor, Color itemColor, Vector2 origin, float scale)