Removed an old abyss check

This commit is contained in:
DominicKarma authored and Cameron Ewell committed 2021-05-02 14:53:44 -04:00
1 parent f2ca14fb76
commit fdfc4e5436
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -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<CrushDepth>()];
if (hurtByAbyss)
{
+2 -2
View File
@@ -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<CrushDepth>()];
(npc.position.Y / 16f > (Main.rockLayer - Main.maxTilesY * 0.05)) &&
abyssPosY && abyssPosX && !npc.buffImmune[ModContent.BuffType<CrushDepth>()];
return hurtByAbyss;
}