diff --git a/BiomeManagers/AbyssLayer2Biome.cs b/BiomeManagers/AbyssLayer2Biome.cs index 2121a7cc06..200c061767 100644 --- a/BiomeManagers/AbyssLayer2Biome.cs +++ b/BiomeManagers/AbyssLayer2Biome.cs @@ -32,7 +32,7 @@ namespace CalamityMod.BiomeManagers { return AbyssLayer1Biome.MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && playerYTileCoords > Main.rockLayer - 10 && - playerYTileCoords <= Main.rockLayer + Main.maxTilesY * 0.140; + playerYTileCoords <= Main.rockLayer + Main.maxTilesY * 0.143; } } } diff --git a/BiomeManagers/AbyssLayer3Biome.cs b/BiomeManagers/AbyssLayer3Biome.cs index aed13ed5ac..8a78f35785 100644 --- a/BiomeManagers/AbyssLayer3Biome.cs +++ b/BiomeManagers/AbyssLayer3Biome.cs @@ -31,8 +31,8 @@ namespace CalamityMod.BiomeManagers public override bool IsBiomeActive(Player player) { return AbyssLayer1Biome.MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && - playerYTileCoords > Main.rockLayer + Main.maxTilesY * 0.140 && - playerYTileCoords <= Main.rockLayer + Main.maxTilesY * 0.270; + playerYTileCoords > Main.rockLayer + Main.maxTilesY * 0.143 && + playerYTileCoords <= Main.rockLayer + Main.maxTilesY * 0.268; } } } diff --git a/BiomeManagers/AbyssLayer4Biome.cs b/BiomeManagers/AbyssLayer4Biome.cs index 4d7a60ff96..e410d6465a 100644 --- a/BiomeManagers/AbyssLayer4Biome.cs +++ b/BiomeManagers/AbyssLayer4Biome.cs @@ -31,7 +31,7 @@ namespace CalamityMod.BiomeManagers public override bool IsBiomeActive(Player player) { return AbyssLayer1Biome.MeetsBaseAbyssRequirement(player, out int playerYTileCoords) && - playerYTileCoords > Main.rockLayer + Main.maxTilesY * 0.270; + playerYTileCoords > Main.rockLayer + Main.maxTilesY * 0.268; } } } diff --git a/World/Abyss.cs b/World/Abyss.cs index 35b0920152..b865b09ed4 100644 --- a/World/Abyss.cs +++ b/World/Abyss.cs @@ -47,8 +47,8 @@ namespace CalamityMod.World AbyssChasmBottom = abyssChasmY - 100; //850 small 1450 medium 2050 large int abyssChasmX = AtLeftSideOfWorld ? genLimit - (genLimit - 135) + 35 : genLimit + (genLimit - 135) - 35; //2100 - 1965 = 135 : 2100 + 1965 = 4065 - int abyssMinX = AtLeftSideOfWorld ? 0 : abyssChasmX - 150; - int abyssMaxX = AtLeftSideOfWorld ? abyssChasmX + 150 : x; + int abyssMinX = AtLeftSideOfWorld ? 0 : abyssChasmX - 160; + int abyssMaxX = AtLeftSideOfWorld ? abyssChasmX + 160 : x; for (int abyssIndex = abyssMinX; abyssIndex < abyssMaxX; abyssIndex++) { @@ -67,193 +67,126 @@ namespace CalamityMod.World //normally i would organize each layer of blocks by the order of how they are placed in the abyss //but i cannot be bothered, and when i do it, it keeps messing up or making certain parts like transitions not gen right //i have at least left comments so people reading will know what does what - if (abyssIndex2 > (rockLayer - Main.maxTilesY / 15) - WorldGen.genRand.Next(30)) + if (abyssIndex2 > (rockLayer - Main.maxTilesY / 15) + 50) { - //dithering on the edge of the abyss, checks for the exposed edge depending on worldside - if ((AtLeftSideOfWorld && abyssIndex > abyssChasmX + 145) || (!AtLeftSideOfWorld && abyssIndex < abyssChasmX - 145)) + //replaces blocks wand walls that can be converted + if (canConvert) { - if (WorldGen.genRand.NextBool(2)) + //layer 4 + if (abyssIndex2 > (rockLayer + y * 0.270)) { - WorldGen.KillTile(abyssIndex, abyssIndex2); - - //layer 4 - if (abyssIndex2 > (rockLayer + y * 0.275)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); - } - //layer 3-4 dithering transition - else if (abyssIndex2 > (rockLayer + y * 0.270) && WorldGen.genRand.NextBool(2)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); - } - //layer 3 - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); - } - //layer 2-3 dithering transition - else if (abyssIndex2 > (rockLayer + y * 0.140) && WorldGen.genRand.NextBool(2)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); - } - //layer 1-2 dithering transition - else if (abyssIndex2 >= rockLayer - 10 && abyssIndex2 <= rockLayer) - { - if (WorldGen.genRand.NextBool(2)) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - } - //layer 1 - else if (abyssIndex2 <= rockLayer - 10) - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); - } - //layer 2 (default block for the abyss) - else - { - WorldGen.PlaceTile(abyssIndex, abyssIndex2, ModContent.TileType()); - } + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); } - } - else - { - //replaces blocks wand walls that can be converted - if (canConvert) + //layer 3-4 dithering transition + else if (abyssIndex2 > (rockLayer + y * 0.268) && WorldGen.genRand.NextBool(2)) { - //layer 4 - if (abyssIndex2 > (rockLayer + y * 0.275)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 3-4 dithering transition - else if (abyssIndex2 > (rockLayer + y * 0.270) && WorldGen.genRand.NextBool(2)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 3 - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 2-3 dithering transition - else if (abyssIndex2 > (rockLayer + y * 0.140) && WorldGen.genRand.NextBool(2)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 1-2 dithering transition - else if (abyssIndex2 >= rockLayer - 10 && abyssIndex2 <= rockLayer) - { - if (WorldGen.genRand.NextBool(2)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - } - //layer 1 - else if (abyssIndex2 <= rockLayer - 10) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 2 (default block for the abyss) - else + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 3 + else if (abyssIndex2 > (rockLayer + y * 0.145)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 2-3 dithering transition + else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.NextBool(2)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 1-2 dithering transition + else if (abyssIndex2 >= rockLayer - 10 && abyssIndex2 <= rockLayer) + { + if (WorldGen.genRand.NextBool(2)) { tile.TileType = (ushort)ModContent.TileType(); tile.WallType = (ushort)ModContent.WallType(); } - } - //basically places smaller clusters everywhere else - else if (!tile.HasTile) - { - tile.Get().HasTile = true; - - //layer 4 - if (abyssIndex2 > (rockLayer + y * 0.275)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 3-4 dithering transition - else if (abyssIndex2 > (rockLayer + y * 0.270) && WorldGen.genRand.NextBool(2)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 3 - else if (abyssIndex2 > (rockLayer + y * 0.145)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 2-3 dithering transition - else if (abyssIndex2 > (rockLayer + y * 0.140) && WorldGen.genRand.NextBool(2)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - //layer 1-2 dithering transition - else if (abyssIndex2 >= rockLayer - 10 && abyssIndex2 <= rockLayer) - { - if (WorldGen.genRand.NextBool(2)) - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - else - { - tile.TileType = (ushort)ModContent.TileType(); - tile.WallType = (ushort)ModContent.WallType(); - } - } - //layer 1 - else if (abyssIndex2 <= rockLayer - 10) + else { tile.TileType = (ushort)ModContent.TileType(); tile.WallType = (ushort)ModContent.WallType(); } - //layer 2 (default block for the abyss) - else + } + //layer 1 + else if (abyssIndex2 <= rockLayer - 10) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 2 (default block for the abyss) + else + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + } + //basically places smaller clusters everywhere else? + else if (!tile.HasTile) + { + tile.Get().HasTile = true; + + //layer 4 + if (abyssIndex2 > (rockLayer + y * 0.270)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 3-4 dithering transition + else if (abyssIndex2 > (rockLayer + y * 0.268) && WorldGen.genRand.NextBool(2)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 3 + else if (abyssIndex2 > (rockLayer + y * 0.145)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 2-3 dithering transition + else if (abyssIndex2 > (rockLayer + y * 0.143) && WorldGen.genRand.NextBool(2)) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 1-2 dithering transition + else if (abyssIndex2 >= rockLayer - 10 && abyssIndex2 <= rockLayer) + { + if (WorldGen.genRand.NextBool(2)) { tile.TileType = (ushort)ModContent.TileType(); tile.WallType = (ushort)ModContent.WallType(); } + else + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + } + //layer 1 + else if (abyssIndex2 <= rockLayer - 10) + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); + } + //layer 2 (default block for the abyss) + else + { + tile.TileType = (ushort)ModContent.TileType(); + tile.WallType = (ushort)ModContent.WallType(); } } } } } - //just place three craters next to each other to make it wider, genuinely could not understand the ChasmGenerator generation code + //initial hole MiscWorldgenRoutines.ChasmGenerator(abyssChasmX, (int)WorldGen.worldSurfaceLow + 65, AbyssChasmBottom, true); - if (AtLeftSideOfWorld) - { - MiscWorldgenRoutines.ChasmGenerator(abyssChasmX - 26, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); - MiscWorldgenRoutines.ChasmGenerator(abyssChasmX + 10, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); - } - if (!AtLeftSideOfWorld) - { - MiscWorldgenRoutines.ChasmGenerator(abyssChasmX + 26, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); - MiscWorldgenRoutines.ChasmGenerator(abyssChasmX - 10, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); - } - + MiscWorldgenRoutines.ChasmGenerator(abyssChasmX - 22, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); + MiscWorldgenRoutines.ChasmGenerator(abyssChasmX + 22, (int)WorldGen.worldSurfaceLow, AbyssChasmBottom, true); int maxAbyssIslands = 11; //Small World @@ -269,9 +202,6 @@ namespace CalamityMod.World //place eidolon snail fossil int realFossilY = 0; bool placedFossil = false; - - AbyssIsland(abyssChasmX + 40, AbyssChasmBottom + 45, 80, 95, 118, 120, ModContent.TileType(), false, false, false); - AbyssIsland(abyssChasmX - 40, AbyssChasmBottom + 45, 80, 95, 118, 120, ModContent.TileType(), false, false, false); while (!placedFossil) { @@ -287,9 +217,9 @@ namespace CalamityMod.World realFossilY = fossilCheckY; //place a box of voidstone for the fossil to spawn on - for (int fossilX = abyssChasmX - 12; fossilX <= abyssChasmX + 12; fossilX++) + for (int fossilX = abyssChasmX - 55; fossilX <= abyssChasmX + 55; fossilX++) { - for (int fossilY = realFossilY - 2; fossilY <= realFossilY + 3; fossilY++) + for (int fossilY = realFossilY - 2; fossilY <= realFossilY + 25; fossilY++) { WorldGen.PlaceTile(fossilX, fossilY, ModContent.TileType()); } @@ -560,7 +490,7 @@ namespace CalamityMod.World //ambient tiles and pots for (int abyssIndex = abyssMinX + 5; abyssIndex < abyssMaxX - 5; abyssIndex++) { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) + for (int abyssIndex2 = 0; abyssIndex2 < Main.maxTilesY - 200; abyssIndex2++) { Tile tileToGrowVineOn = Main.tile[abyssIndex, abyssIndex2]; @@ -569,7 +499,7 @@ namespace CalamityMod.World Tile tile = Main.tile[abyssIndex, abyssIndex2 + 1]; //above the 4th layer - if (abyssIndex2 < (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) + if (abyssIndex2 < Main.maxTilesY - 200 && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) { //sulphur shale stuff if (tile.TileType == ModContent.TileType()) @@ -621,7 +551,7 @@ namespace CalamityMod.World //planty mush stuff if (tile.TileType == ModContent.TileType()) { - if (WorldGen.genRand.NextBool(2)) + if (WorldGen.genRand.NextBool(8)) { ushort[] PlantPiles = new ushort[] { (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; @@ -642,6 +572,15 @@ namespace CalamityMod.World WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(Kelps)); } + //plany mush piles + if (WorldGen.genRand.NextBool(15)) + { + ushort[] PlantPiles = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + + WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(PlantPiles)); + } + //gravel rock piles if (WorldGen.genRand.NextBool(15)) { @@ -693,26 +632,17 @@ namespace CalamityMod.World } } - //bulb trees on voidstone - if (WorldGen.genRand.NextBool(25) && tile.TileType == ModContent.TileType()) + //voidstone stuff + if (tile.TileType == ModContent.TileType()) { - ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + //bulb trees + if (WorldGen.genRand.NextBool(25)) + { + ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; - WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); - } - } - - //below 4th layer - if (abyssIndex2 >= (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) - { - //bulb trees on voidstone - if (WorldGen.genRand.NextBool(8) && tile.TileType == ModContent.TileType()) - { - ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), - (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; - - WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); + WorldGen.PlaceObject(abyssIndex, abyssIndex2, WorldGen.genRand.Next(BulbTrees)); + } } } diff --git a/World/AstralBiome.cs b/World/AstralBiome.cs index 8e2a52e6be..d051cad182 100644 --- a/World/AstralBiome.cs +++ b/World/AstralBiome.cs @@ -18,9 +18,6 @@ using Terraria.WorldBuilding; namespace CalamityMod.World { - //DylanDoe's TODO: - //change the astral monolith thing so it places away from the meteor, chosen side possibly based on the side of the world? - //raise the astral biome generation height limit to prevent things like mountain tops not being fully replaced, ect public class AstralBiome { public static readonly SoundStyle MeteorSound = new("CalamityMod/Sounds/Custom/AstralStarFall"); @@ -128,11 +125,7 @@ namespace CalamityMod.World float worldEdgeMargin = (float)Main.maxTilesX * 0.08f; int xLimit = Main.maxTilesX / 2; - int x = Abyss.AtLeftSideOfWorld ? rand.Next(400, xLimit) : rand.Next(xLimit, Main.maxTilesX - 400); - while ((float)x > (float)Main.spawnTileX - worldEdgeMargin && (float)x < (float)Main.spawnTileX + worldEdgeMargin) - { - x = Abyss.AtLeftSideOfWorld ? rand.Next(400, xLimit) : rand.Next(xLimit, Main.maxTilesX - 400); - } + int x = Abyss.AtLeftSideOfWorld ? rand.Next(Main.dungeonX + 200, xLimit - 400) : rand.Next(xLimit + 400, Main.dungeonX - 200); //world surface = 920 large 740 medium 560 small int y = (int)(Main.worldSurface * 0.5); //Large = 522, Medium = 444, Small = 336 diff --git a/World/SulphurousSea.cs b/World/SulphurousSea.cs index 2c613cce75..b5fd05498c 100644 --- a/World/SulphurousSea.cs +++ b/World/SulphurousSea.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Placeables.Furniture; using CalamityMod.Items.Weapons.Summon; using CalamityMod.Schematics; using CalamityMod.Tiles.Abyss; +using CalamityMod.Tiles.Abyss.Stalactite; using CalamityMod.Walls; using Microsoft.Xna.Framework; using System; @@ -208,7 +209,7 @@ namespace CalamityMod.World GenerateColumnsInCaverns(); GenerateSteamGeysersInCaverns(); GenerateHardenedSandstone(); - PlaceStalactites(); + PlaceAmbience(); GenerateChests(scrapPilePositions); } #endregion @@ -998,43 +999,62 @@ namespace CalamityMod.World } } - public static void PlaceStalactites() - { - static int heightFromType(int type) - { - if (type <= 2) - return 2; - else if (type <= 4) - return 3; - else - return 4; - }; - - for (int i = 1; i < BiomeWidth; i++) + public static void PlaceAmbience() + { + for (int i = 0; i < BiomeWidth; i++) { int x = GetActualX(i); - for (int y = YStart; y <= YStart + BlockDepth; y++) + for (int y = YStart - 140; y < Main.rockLayer; y++) { - if (y - YStart > BlockDepth * 0.25f) + Tile tile = Main.tile[x, y]; + Tile tileUp = Main.tile[x, y - 1]; + Tile tileDown = Main.tile[x, y + 1]; + + if (tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType() || + tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType()) { - if (WorldGen.SolidTile(x, y - 1) && WorldGen.genRand.NextBool(10)) + //stalagmites, fossiles, and ribs + if (tileUp.LiquidType == LiquidID.Water && tileUp.LiquidAmount > 0 && !tileUp.HasTile) { - int dy = 1; - while (!CalamityUtils.ParanoidTileRetrieval(x, y + dy).HasTile) + if (WorldGen.genRand.NextBool(12)) { - dy++; - if (dy > StalactitePairMaxDistance) - break; + ushort[] Stalagmites = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), + (ushort)ModContent.TileType() }; + + WorldGen.PlaceObject(x, y - 1, WorldGen.genRand.Next(Stalagmites)); } - if (dy <= StalactitePairMaxDistance && dy >= StalactitePairMinDistance) + + if (WorldGen.genRand.NextBool(15)) { - int type = WorldGen.genRand.Next(6); - type++; - int height = heightFromType(type); - - PlaceStalactite(x, y, height, CalamityMod.Instance.Find($"SulphurousStalactite{type}").Type); - if (WorldGen.SolidTile(x, y + dy + 1)) - PlaceStalacmite(x, y + dy, height, CalamityMod.Instance.Find($"SulphurousStalacmite{type}").Type); + ushort[] SulphuricFossils = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + + WorldGen.PlaceObject(x, y - 1, WorldGen.genRand.Next(SulphuricFossils)); + } + + if (WorldGen.genRand.NextBool(18)) + { + ushort[] Ribs = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; + + WorldGen.PlaceObject(x, y - 1, WorldGen.genRand.Next(Ribs)); + } + } + + //stalactites + if (tileDown.LiquidType == LiquidID.Water && tileDown.LiquidAmount > 0 && !tileDown.HasTile) + { + if (WorldGen.genRand.NextBool(12)) + { + ushort[] Stalactites = new ushort[] { (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), + (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), + (ushort)ModContent.TileType() }; + + WorldGen.PlaceObject(x, y + 1, WorldGen.genRand.Next(Stalactites)); } } } diff --git a/World/SunkenSea.cs b/World/SunkenSea.cs index afb937ad4c..9a6205785f 100644 --- a/World/SunkenSea.cs +++ b/World/SunkenSea.cs @@ -344,10 +344,13 @@ namespace CalamityMod.World } //kill any random floating tiles - if ((tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType()) && - !tileUp.HasTile && !tileDown.HasTile && !tileLeft.HasTile && !tileRight.HasTile) + if (tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType()) { - WorldGen.KillTile(x, y); + //kill any individual floating tiles + if (!tileUp.HasTile && !tileDown.HasTile && !tileLeft.HasTile && !tileRight.HasTile) + { + WorldGen.KillTile(x, y); + } } //kill any random clumps of navystone without eutrophic sand around them