Deific/Rampart and health pots now work as expected
This commit is contained in:
1 parent
462af52db1
commit
dfeab334f8
4 files changed
+14
-3
No files matched your search
@@ -3409,6 +3409,18 @@ namespace CalamityMod.CalPlayer
|
||||
if (Player.potionDelay > 0 && !Player.HasCooldown(PotionSickness.ID))
|
||||
Player.AddCooldown(PotionSickness.ID, Player.potionDelay, false);
|
||||
|
||||
if (cooldowns.TryGetValue(PotionSickness.ID, out CooldownInstance cd))
|
||||
{
|
||||
if (Player.potionDelay != cd.timeLeft && cd.timeLeft > 0)
|
||||
{
|
||||
cd.timeLeft = Player.potionDelay;
|
||||
}
|
||||
|
||||
if (cd.timeLeft > cd.duration)
|
||||
cd.duration = cd.timeLeft; // If the new cooldown is larger than the full duration, update, else keep it the same.
|
||||
}
|
||||
|
||||
|
||||
// Add a cooldown display for chaos state if the player has the vanilla counter ticking
|
||||
// This will make the cooldown look like vanilla Rod of Discord, as it wasn't applied by either Normality Relocator or Spectral Veil
|
||||
if (Player.chaosState && !Player.HasCooldown(ChaosState.ID))
|
||||
|
||||
@@ -2835,9 +2835,6 @@ namespace CalamityMod.CalPlayer
|
||||
bonusStealthDamage += nanotech ? 0.05f : 0.08f;
|
||||
}
|
||||
|
||||
if (dAmulet)
|
||||
Player.pStone = true;
|
||||
|
||||
if (frostFlare)
|
||||
{
|
||||
Player.resistCold = true;
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dAmulet = true;
|
||||
player.longInvince = true;
|
||||
player.pStone = true;
|
||||
player.lifeRegen += 1;
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace CalamityMod.Items.Accessories
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.dAmulet = true;
|
||||
player.longInvince = true;
|
||||
player.pStone = true;
|
||||
player.lifeRegen += 1;
|
||||
|
||||
if (player.statLife <= player.statLifeMax2 * 0.5)
|
||||
|
||||
Reference in new issue
Block a user