diff --git a/BiomeManagers/AbyssLayer1Biome.cs b/BiomeManagers/AbyssLayer1Biome.cs index 9a459ae69b..34af82e2df 100644 --- a/BiomeManagers/AbyssLayer1Biome.cs +++ b/BiomeManagers/AbyssLayer1Biome.cs @@ -19,15 +19,15 @@ namespace CalamityMod.BiomeManagers int abyssChasmX = Abyss.AtLeftSideOfWorld ? genLimit - (genLimit - 135) + 35 : genLimit + (genLimit - 135) - 35; bool abyssPosX = false; - bool abyssPosY = point.Y >= (Main.rockLayer - Main.maxTilesY / 13); + bool abyssPosY = point.Y >= (Main.rockLayer - Main.maxTilesY / 13) && point.Y <= Main.maxTilesY - 200; if (Abyss.AtLeftSideOfWorld) { - if (point.X < abyssChasmX + 125) + if (point.X < abyssChasmX + 140) abyssPosX = true; } else { - if (point.X > abyssChasmX - 125) + if (point.X > abyssChasmX - 140) abyssPosX = true; } @@ -52,7 +52,9 @@ namespace CalamityMod.BiomeManagers { if (CalamityPlayer.areThereAnyDamnBosses) return Main.curMusic; - return CalamityMod.Instance.GetMusicFromMusicMod("Abyss1") ?? MusicID.Hell; + return !Main.dayTime + ? CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaNight") ?? MusicID.Desert // Nighttime + : CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaDay") ?? MusicID.Desert; // Daytime } } diff --git a/BiomeManagers/SulphurousSeaBiome.cs b/BiomeManagers/SulphurousSeaBiome.cs index 9308c03583..8982048bde 100644 --- a/BiomeManagers/SulphurousSeaBiome.cs +++ b/BiomeManagers/SulphurousSeaBiome.cs @@ -31,16 +31,17 @@ namespace CalamityMod.BiomeManagers if (acidRain) { music = DownedBossSystem.downedPolterghast - ? CalamityMod.Instance.GetMusicFromMusicMod("AcidRain2") ?? MusicID.Monsoon // Acid Rain Tier 3 - : CalamityMod.Instance.GetMusicFromMusicMod("AcidRain1") ?? MusicID.OldOnesArmy; // Acid Rain Tier 1 + 2 + ? CalamityMod.Instance.GetMusicFromMusicMod("AcidRain2") ?? MusicID.Monsoon // Acid Rain Tier 3 + : CalamityMod.Instance.GetMusicFromMusicMod("AcidRain1") ?? MusicID.OldOnesArmy; // Acid Rain Tier 1 + 2 } // Regular Sulphur Sea themes, when Acid Rain is not occurring else music = !Main.dayTime - ? CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaNight") ?? MusicID.Desert // Nighttime - : CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaDay") ?? MusicID.Desert; // Daytime + ? CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaNight") ?? MusicID.Desert // Nighttime + : CalamityMod.Instance.GetMusicFromMusicMod("SulphurousSeaDay") ?? MusicID.Desert; // Daytime } + return music; } } @@ -64,7 +65,8 @@ namespace CalamityMod.BiomeManagers if (point.X > Main.maxTilesX - 380) sulphurPosX = true; } - return (BiomeTileCounterSystem.SulphurTiles >= 300 || (player.ZoneOverworldHeight && sulphurPosX)) && !player.Calamity().ZoneAbyss; + + return (BiomeTileCounterSystem.SulphurTiles >= 300 || (point.Y < (Main.rockLayer - Main.maxTilesY / 13) && sulphurPosX)) && !player.Calamity().ZoneAbyss; } } } diff --git a/Tiles/Abyss/AbyssAmbient/ShalePile1.png b/Tiles/Abyss/AbyssAmbient/ShalePile1.png new file mode 100644 index 0000000000..551321a0ca Binary files /dev/null and b/Tiles/Abyss/AbyssAmbient/ShalePile1.png differ diff --git a/Tiles/Abyss/AbyssAmbient/ShalePile2.png b/Tiles/Abyss/AbyssAmbient/ShalePile2.png new file mode 100644 index 0000000000..5b2c21132e Binary files /dev/null and b/Tiles/Abyss/AbyssAmbient/ShalePile2.png differ diff --git a/Tiles/Abyss/AbyssAmbient/ShalePile3.png b/Tiles/Abyss/AbyssAmbient/ShalePile3.png new file mode 100644 index 0000000000..3a8af190f5 Binary files /dev/null and b/Tiles/Abyss/AbyssAmbient/ShalePile3.png differ diff --git a/Tiles/Abyss/AbyssAmbient/SulphurPireCoral1.png b/Tiles/Abyss/AbyssAmbient/SulphurPireCoral1.png new file mode 100644 index 0000000000..bf1e7e8b2c Binary files /dev/null and b/Tiles/Abyss/AbyssAmbient/SulphurPireCoral1.png differ diff --git a/Tiles/Abyss/AbyssAmbient/SulphurPireCoral2.png b/Tiles/Abyss/AbyssAmbient/SulphurPireCoral2.png new file mode 100644 index 0000000000..ecbe1509cf Binary files /dev/null and b/Tiles/Abyss/AbyssAmbient/SulphurPireCoral2.png differ diff --git a/Tiles/Abyss/AbyssAmbient/SulphurPireCoral3.png b/Tiles/Abyss/AbyssAmbient/SulphurPireCoral3.png new file mode 100644 index 0000000000..7810b4febb Binary files /dev/null and b/Tiles/Abyss/AbyssAmbient/SulphurPireCoral3.png differ diff --git a/Tiles/Abyss/AbyssAmbient/SulphurPireCoralThin.png b/Tiles/Abyss/AbyssAmbient/SulphurPireCoralThin.png new file mode 100644 index 0000000000..f6e5754248 Binary files /dev/null and b/Tiles/Abyss/AbyssAmbient/SulphurPireCoralThin.png differ diff --git a/Tiles/Abyss/AbyssAmbient/SulphurTubeCoral.png b/Tiles/Abyss/AbyssAmbient/SulphurTubeCoral.png new file mode 100644 index 0000000000..4fb5879115 Binary files /dev/null and b/Tiles/Abyss/AbyssAmbient/SulphurTubeCoral.png differ diff --git a/World/Abyss.cs b/World/Abyss.cs index f092d9b303..12b0fded40 100644 --- a/World/Abyss.cs +++ b/World/Abyss.cs @@ -49,8 +49,8 @@ namespace CalamityMod.World plantyMushSide = false; } - int abyssMinX = AtLeftSideOfWorld ? 0 : abyssChasmX - 130; - int abyssMaxX = AtLeftSideOfWorld ? abyssChasmX + 130 : x; + int abyssMinX = AtLeftSideOfWorld ? 0 : abyssChasmX - 150; + int abyssMaxX = AtLeftSideOfWorld ? abyssChasmX + 150 : x; for (int abyssIndex = abyssMinX; abyssIndex < abyssMaxX; abyssIndex++) { @@ -71,7 +71,7 @@ namespace CalamityMod.World if (abyssIndex2 > (rockLayer - Main.maxTilesY / 15) - WorldGen.genRand.Next(30)) { //dithering on the edge of the abyss - if ((AtLeftSideOfWorld && abyssIndex > abyssChasmX + 125) || (!AtLeftSideOfWorld && abyssIndex < abyssChasmX - 125)) + if ((AtLeftSideOfWorld && abyssIndex > abyssChasmX + 145) || (!AtLeftSideOfWorld && abyssIndex < abyssChasmX - 145)) { if (WorldGen.genRand.NextBool(2)) { @@ -461,52 +461,6 @@ namespace CalamityMod.World } } - //clear lava and glowing moss away from the side of the abyss because it ruins immersion - if (AtLeftSideOfWorld) - { - for (int abyssIndex = 0; abyssIndex < abyssChasmX + 155; abyssIndex++) - { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) - { - Tile tile = Main.tile[abyssIndex, abyssIndex2]; - - if (tile.LiquidType == LiquidID.Lava && tile.LiquidAmount > 0) - { - tile.LiquidAmount = 0; - } - - int[] Mosses = { 381, 534, 536, 539, 625, 627 }; - - if (Mosses.Contains(tile.TileType)) - { - WorldGen.KillTile(abyssIndex, abyssIndex2); - } - } - } - } - else - { - for (int abyssIndex = abyssChasmX - 155; abyssIndex < x; abyssIndex++) - { - for (int abyssIndex2 = 0; abyssIndex2 < abyssChasmY; abyssIndex2++) - { - Tile tile = Main.tile[abyssIndex, abyssIndex2]; - - if (tile.LiquidType == LiquidID.Lava && tile.LiquidAmount > 0) - { - tile.LiquidAmount = 0; - } - - int[] Mosses = { 184, 374, 381, 534, 536, 539, 625, 627 }; - - if (Mosses.Contains(tile.TileType)) - { - WorldGen.KillTile(abyssIndex, abyssIndex2); - } - } - } - } - //ambient tiles and pots for (int abyssIndex = abyssMinX + 5; abyssIndex < abyssMaxX - 5; abyssIndex++) { @@ -514,12 +468,14 @@ namespace CalamityMod.World { if (!Main.tile[abyssIndex, abyssIndex2].HasTile) { + Tile tile = Main.tile[abyssIndex, abyssIndex2 + 1]; + //above the 4th layer if (abyssIndex2 < (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) { //giant kelp, more often in upper layers - if ((WorldGen.genRand.NextBool(18) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) || - (WorldGen.genRand.NextBool(35) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType())) + if ((WorldGen.genRand.NextBool(18) && tile.TileType == ModContent.TileType()) || + (WorldGen.genRand.NextBool(35) && tile.TileType == ModContent.TileType())) { ushort[] Kelps = new ushort[] { (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; @@ -528,7 +484,7 @@ namespace CalamityMod.World } //bulb trees on voidstone - if (WorldGen.genRand.NextBool(25) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) + if (WorldGen.genRand.NextBool(25) && tile.TileType == ModContent.TileType()) { ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; @@ -537,7 +493,7 @@ namespace CalamityMod.World } //sulphur shale stuff - if (Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) + if (tile.TileType == ModContent.TileType()) { if (WorldGen.genRand.NextBool(8)) { @@ -562,7 +518,7 @@ namespace CalamityMod.World if (abyssIndex2 >= (int)(rockLayer + y * 0.262) && WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1)) { //bulb trees on voidstone - if (WorldGen.genRand.NextBool(6) && Main.tile[abyssIndex, abyssIndex2 + 1].TileType == ModContent.TileType()) + if (WorldGen.genRand.NextBool(6) && tile.TileType == ModContent.TileType()) { ushort[] BulbTrees = new ushort[] { (ushort)ModContent.TileType(), (ushort)ModContent.TileType(), (ushort)ModContent.TileType() }; @@ -572,7 +528,7 @@ namespace CalamityMod.World } //pots - if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && abyssIndex2 > rockLayer) + if ((tile.TileType == ModContent.TileType() || tile.TileType == ModContent.TileType()) && abyssIndex2 > rockLayer) { if (WorldGen.genRand.NextBool(5)) { @@ -581,7 +537,7 @@ namespace CalamityMod.World } } //sulphur pots - else if (WorldGen.SolidTile(abyssIndex, abyssIndex2 + 1) && abyssIndex2 < (int)Main.worldSurface) + else if (tile.TileType == ModContent.TileType() && abyssIndex2 < (int)Main.worldSurface) { if (WorldGen.genRand.NextBool(3)) {