diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 7a9def0747..48183cbb47 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1868,12 +1868,12 @@ namespace CalamityMod.CalPlayer { // Abyss depth variables Point point = Player.Center.ToTileCoordinates(); - double abyssSurface = Main.rockLayer - Main.maxTilesY * 0.05; - double abyssLevel1 = Main.rockLayer + Main.maxTilesY * 0.03; - double totalAbyssDepth = Main.maxTilesY - 250D - abyssSurface; - double totalAbyssDepthFromLayer1 = Main.maxTilesY - 250D - abyssLevel1; - double playerAbyssDepth = point.Y - abyssSurface; - double playerAbyssDepthFromLayer1 = point.Y - abyssLevel1; + double abyssSurface = Main.remixWorld ? SulphurousSea.YStart : (Main.rockLayer - Main.maxTilesY * 0.05); + double abyssLevel1 = Main.remixWorld ? (SulphurousSea.YStart - Main.maxTilesY * 0.05) : (Main.rockLayer + Main.maxTilesY * 0.03); + double totalAbyssDepth = Main.remixWorld ? SulphurousSea.YStart : (Main.maxTilesY - 250D - abyssSurface); + double totalAbyssDepthFromLayer1 = Main.remixWorld ? (SulphurousSea.YStart - Main.maxTilesY * 0.05) : (Main.maxTilesY - 250D - abyssLevel1); + double playerAbyssDepth = Main.remixWorld ? (totalAbyssDepth - point.Y) : (point.Y - abyssSurface); + double playerAbyssDepthFromLayer1 = Main.remixWorld ? (abyssLevel1 - point.Y) : (point.Y - abyssLevel1); double depthRatio = playerAbyssDepth / totalAbyssDepth; double depthRatioFromAbyssLayer1 = playerAbyssDepthFromLayer1 / totalAbyssDepthFromLayer1; @@ -1924,7 +1924,7 @@ namespace CalamityMod.CalPlayer } // Breath lost while at zero breath - double breathLoss = point.Y > abyssLevel1 ? 50D * depthRatioFromAbyssLayer1 : 0D; + double breathLoss = Main.remixWorld ? (point.Y < abyssLevel1 ? 50D * depthRatioFromAbyssLayer1 : 0D) : (point.Y > abyssLevel1 ? 50D * depthRatioFromAbyssLayer1 : 0D); // Breath Loss Multiplier, depending on gear double breathLossMult = 1D - diff --git a/Systems/WorldMiscUpdateSystem.cs b/Systems/WorldMiscUpdateSystem.cs index e439e4eb4f..8dad686ae9 100644 --- a/Systems/WorldMiscUpdateSystem.cs +++ b/Systems/WorldMiscUpdateSystem.cs @@ -349,6 +349,9 @@ namespace CalamityMod.Systems { double spawnRate = 100000D; + if (CalamityWorld.LegendaryMode && revenge) + spawnRate *= 0.25D; + if (revenge) spawnRate *= 0.85D; diff --git a/Utilities/PlayerUtils.cs b/Utilities/PlayerUtils.cs index 0a1f45bd78..5197f0a9b8 100644 --- a/Utilities/PlayerUtils.cs +++ b/Utilities/PlayerUtils.cs @@ -210,7 +210,7 @@ namespace CalamityMod if (mp.littleLightPet) light += 3; if (mp.profanedCrystalBuffs && !mp.ZoneAbyss) - light += Main.dayTime || player.lavaWet ? 2 : 1; // not sure how you'd be in lava in the abyss but go ham I guess + light += (Main.dayTime || player.lavaWet) ? 2 : 1; // not sure how you'd be in lava in the abyss but go ham I guess return light; }