From 571cc11966cdd50447ab106ff438cdae71ae24cb Mon Sep 17 00:00:00 2001 From: Mortis3 <53282720+DylanDoe21@users.noreply.github.com> Date: Fri, 17 Feb 2023 16:52:13 -0500 Subject: [PATCH] sulphur sea bg fix for worldsizes --- Skies/SulphurSeaSky.cs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/Skies/SulphurSeaSky.cs b/Skies/SulphurSeaSky.cs index df629f3af1..4728aacb4a 100644 --- a/Skies/SulphurSeaSky.cs +++ b/Skies/SulphurSeaSky.cs @@ -43,7 +43,19 @@ namespace CalamityMod.Skies // spriteBatch.Draw(CalamityMod.SulphurSeaSkyFront, new Rectangle(0, (int)(-Main.screenPosition.Y / 6f) + 1300, Main.screenWidth, Main.screenHeight), Color.Lerp(Main.ColorOfTheSkies, Color.White, 0.33f) * 1.5f * opacity); //} - int sulphurSeaHeight = (World.SulphurousSea.YStart + (int)Main.worldSurface) / 5; + //small worlds, default draw height + int sulphurSeaHeight = (World.SulphurousSea.YStart + (int)Main.worldSurface) / 2; + + //medium worlds + if (Main.maxTilesX >= 6400 && Main.maxTilesX < 8400) + { + sulphurSeaHeight = (World.SulphurousSea.YStart + (int)Main.worldSurface) / 5; + } + //large worlds (and anything bigger) + if (Main.maxTilesX >= 8400) + { + sulphurSeaHeight = (World.SulphurousSea.YStart + (int)Main.worldSurface) / 98; + } if (maxDepth >= 1f && minDepth < 1f) {