From af06b0667ff13fcce782a0621020bf441befa522 Mon Sep 17 00:00:00 2001 From: mountaindrew10 Date: Wed, 21 Jun 2023 01:50:59 -0500 Subject: [PATCH] Increased Abyss depth limit in remix worlds. --- World/MiscWorldgenRoutines.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/World/MiscWorldgenRoutines.cs b/World/MiscWorldgenRoutines.cs index 758f6bf489..3c80021f2b 100644 --- a/World/MiscWorldgenRoutines.cs +++ b/World/MiscWorldgenRoutines.cs @@ -182,6 +182,7 @@ namespace CalamityMod.World public static void ChasmGenerator(int i, int j, int steps, bool ocean = false) { float num = steps; //850 small 1450 medium 2050 large + int limitIncrease = Main.remixWorld ? 110 : 0; if (ocean) { int tileYLookup = j; @@ -256,14 +257,14 @@ namespace CalamityMod.World } else { - if ((double)vector.Y > Abyss.AbyssChasmBottom) + if ((double)vector.Y > (Abyss.AbyssChasmBottom + limitIncrease)) { num3 -= WorldGen.genRand.Next(5) + 8; } } if (Main.maxTilesY > 2100) { - if (((double)vector.Y > Abyss.AbyssChasmBottom && num > 0f && ocean) || + if (((double)vector.Y > (Abyss.AbyssChasmBottom + limitIncrease) && num > 0f && ocean) || (vector.Y >= Main.maxTilesY && num > 0f && !ocean)) { num = 0f; @@ -271,7 +272,7 @@ namespace CalamityMod.World } else if (Main.maxTilesY > 1500) { - if (((double)vector.Y > Abyss.AbyssChasmBottom && num > 0f && ocean) || + if (((double)vector.Y > (Abyss.AbyssChasmBottom + limitIncrease) && num > 0f && ocean) || (vector.Y > Main.maxTilesY && num > 0f && !ocean)) { num = 0f; @@ -279,7 +280,7 @@ namespace CalamityMod.World } else { - if (((double)vector.Y > Abyss.AbyssChasmBottom && num > 0f && ocean) || + if (((double)vector.Y > (Abyss.AbyssChasmBottom + limitIncrease) && num > 0f && ocean) || (vector.Y > Main.maxTilesY && num > 0f && !ocean)) { num = 0f;