Removed an old abyss check
This commit is contained in:
1 parent
f2ca14fb76
commit
fdfc4e5436
2 files changed
+3
-3
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user