From 336828faaba120b0ce9ac2b7ec07edfa5e0f1dd0 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 22 Jan 2020 15:39:51 -0500 Subject: [PATCH] rewrote frozen lungs code --- CalPlayer/CalamityPlayerMiscEffects.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index e4301bf1cf..932162dbcb 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -297,7 +297,8 @@ namespace CalamityMod.CalPlayer player.buffImmune[BuffID.Electrified] = true; // Reduce breath meter while in icy water instead of chilling - if (player.arcticDivingGear) + bool canBreath = ((modPlayer.sirenBoobs && NPC.downedBoss3) || (modPlayer.sirenBoobsAlt && NPC.downedBoss3) || player.gills || player.merman); + if (player.arcticDivingGear || canBreath) { player.buffImmune[ModContent.BuffType()] = true; } @@ -308,7 +309,7 @@ namespace CalamityMod.CalPlayer player.buffImmune[BuffID.Chilled] = true; if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir)) { - if (Main.myPlayer == player.whoAmI && !player.gills && !player.merman) + if (Main.myPlayer == player.whoAmI) { player.AddBuff(ModContent.BuffType(), 2, false); }