From fdfc4e54366f73a24a030cd2e0da2f2cdfe1012b Mon Sep 17 00:00:00 2001 From: DominicKarma <51094361+DominicKarma@users.noreply.github.com> Date: Tue, 13 Apr 2021 19:33:13 -0500 Subject: [PATCH] Removed an old abyss check --- NPCs/CalamityGlobalNPC.cs | 2 +- NPCs/CalamityGlobalNPCLoot.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index ea387d595f..d686ba610f 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -716,7 +716,7 @@ namespace CalamityMod.NPCs } } - bool inAbyss = ((npc.position.Y / 16f > (Main.rockLayer - Main.maxTilesY * 0.05)) && ((double)(npc.position.Y / 16f) <= Main.maxTilesY - 250) && abyssPosX) || CalamityWorld.abyssTiles > 200; + bool inAbyss = (npc.position.Y / 16f > (Main.rockLayer - Main.maxTilesY * 0.05)) && ((double)(npc.position.Y / 16f) <= Main.maxTilesY - 250) && abyssPosX; bool hurtByAbyss = npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && inAbyss && !npc.buffImmune[BuffType()]; if (hurtByAbyss) { diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 1dc3a89b8e..97cbb9d5e3 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -660,8 +660,8 @@ namespace CalamityMod.NPCs } bool hurtByAbyss = npc.wet && npc.damage > 0 && !npc.boss && !npc.friendly && !npc.dontTakeDamage && - (((npc.position.Y / 16f > (Main.rockLayer - Main.maxTilesY * 0.05)) && - abyssPosY && abyssPosX) || CalamityWorld.abyssTiles > 200) && !npc.buffImmune[ModContent.BuffType()]; + (npc.position.Y / 16f > (Main.rockLayer - Main.maxTilesY * 0.05)) && + abyssPosY && abyssPosX && !npc.buffImmune[ModContent.BuffType()]; return hurtByAbyss; }