Worldgen improvements + Kky fixes
-sunken sea generation fixes and improvements done -draedon sunken sea lab changes to compensate for the sunken sea new positions -astral biome now automatically places on ebonstone wall to prevent falling in holes, and also ignores platforms when generating -also fixed some custom skies not deactivating on the main menu
This commit is contained in:
1 parent
4507b58ee0
commit
12433e3ff8
18 files changed
+163
-50
No files matched your search
@@ -77,14 +77,29 @@ namespace CalamityMod.Systems
|
||||
});
|
||||
|
||||
// Sunken Sea gens after Traps because otherwise boulders spawn in the Sunken Sea :)
|
||||
int TrapsIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Traps"));
|
||||
int TrapsIndex = tasks.FindIndex(genpass => genpass.Name.Equals("Settle Liquids Again"));
|
||||
if (TrapsIndex != -1)
|
||||
{
|
||||
tasks.Insert(TrapsIndex + 1, new PassLegacy("Sunken Sea", (progress, config) =>
|
||||
{
|
||||
progress.Message = "Partially flooding an overblown desert";
|
||||
|
||||
int sunkenSeaX = WorldGen.UndergroundDesertLocation.Left;
|
||||
int sunkenSeaY = WorldGen.UndergroundDesertLocation.Center.Y;
|
||||
int sunkenSeaY = 0;
|
||||
|
||||
//desert position shennanigans
|
||||
//start right above hell, then move up until a desert tile is found, and then place the sunken sea
|
||||
bool foundPosition = false;
|
||||
for (int y = Main.maxTilesY - 200; y >= (Main.maxTilesY / 2) - 45; y--)
|
||||
{
|
||||
if (Main.tile[sunkenSeaX, y].TileType == TileID.Sand || Main.tile[sunkenSeaX, y].TileType == TileID.Sandstone ||
|
||||
Main.tile[sunkenSeaX, y].TileType == TileID.Sand || Main.tile[sunkenSeaX, y].TileType == TileID.Sandstone)
|
||||
{
|
||||
sunkenSeaY = y + 100; //offset so it doesnt generates weird
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
SunkenSea.Place(new Point(sunkenSeaX, sunkenSeaY));
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user