From 3cea7ebcfc5f1f9484279dbc0c53a1fa3dce5261 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Sun, 8 Jan 2023 02:21:52 -0800 Subject: [PATCH 1/2] Welcome Hugekraken --- Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs index 33b61d7e32..6efe0718d0 100644 --- a/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs +++ b/Items/Placeables/Furniture/DevPaintings/ThankYouPainting.cs @@ -79,6 +79,7 @@ namespace CalamityMod.Items.Placeables.Furniture.DevPaintings "CrabBar", "Ein", "Heart Plus Up!", + "Hugekraken", "Ian-1KV", "Lilac Olligoci", "LordMetarex", From b1a0dede2b5db24064035a20f0b17328a6099d15 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 8 Jan 2023 13:23:32 -0500 Subject: [PATCH 2/2] Sulphurous Sea XL fixes --- World/SulphurousSea.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/World/SulphurousSea.cs b/World/SulphurousSea.cs index df9046edfa..3268e447d4 100644 --- a/World/SulphurousSea.cs +++ b/World/SulphurousSea.cs @@ -363,7 +363,13 @@ namespace CalamityMod.World int depth = BlockDepth; int shallowWaterCaveCount = TotalCavesInShallowWater; int minCaveWidth = MinCaveWidth; + + // Large worlds typically have this property evaluate to 14.841, which is then ceiling'd to 15. + // XL worlds will have a value larger than 15... which will break the lower loops and go out of bounds. int maxCaveWidth = MaxCaveWidth; + if (maxCaveWidth > 15) + maxCaveWidth = 15; + ushort wallID = (ushort)ModContent.WallType(); for (int i = 2; i < shallowWaterCaveCount; i++) @@ -1369,7 +1375,7 @@ namespace CalamityMod.World if (Abyss.AtLeftSideOfWorld) return x; - return Main.maxTilesX - x; + return (Main.maxTilesX - 1) - x; } public static float CalculateDitherChance(int width, int top, int bottom, int x, int y)