terminus shrine island
This commit is contained in:
1 parent
2ce070ad00
commit
ff9297ef3c
2 files changed
+12
-9
No files matched your search
+11
-8
@@ -303,10 +303,6 @@ namespace CalamityMod.World
|
||||
maxAbyssIslands = 16; //Medium World
|
||||
}
|
||||
|
||||
// Place the Terminus shrine.
|
||||
UndergroundShrines.SpecialHut((ushort)ModContent.TileType<SmoothVoidstone>(), (ushort)ModContent.TileType<Voidstone>(),
|
||||
(ushort)ModContent.WallType<VoidstoneWallUnsafe>(), UndergroundShrines.UndergroundShrineType.Abyss, abyssChasmX, AbyssChasmBottom);
|
||||
|
||||
//place eidolon snail fossil
|
||||
int realFossilY = 0;
|
||||
bool placedFossil = false;
|
||||
@@ -349,6 +345,13 @@ namespace CalamityMod.World
|
||||
}
|
||||
}
|
||||
|
||||
//place a single abyss island under the terminus shrine
|
||||
AbyssIsland(abyssChasmX, AbyssChasmBottom + 5, 65, 75, 40, 45, false, false, true);
|
||||
|
||||
//place terminus shrine
|
||||
UndergroundShrines.SpecialHut((ushort)ModContent.TileType<SmoothVoidstone>(), (ushort)ModContent.TileType<Voidstone>(),
|
||||
(ushort)ModContent.WallType<VoidstoneWallUnsafe>(), UndergroundShrines.UndergroundShrineType.Abyss, abyssChasmX, AbyssChasmBottom);
|
||||
|
||||
int islandLocationOffset = 30;
|
||||
int islandLocationY = rockLayer;
|
||||
|
||||
@@ -400,18 +403,18 @@ namespace CalamityMod.World
|
||||
}
|
||||
|
||||
//place some islands lining the walls in layer 4
|
||||
for (int voidIslandY = (int)(rockLayer + y * 0.262); voidIslandY <= AbyssChasmBottom; voidIslandY++)
|
||||
for (int voidIslandY = (int)(rockLayer + y * 0.262); voidIslandY <= AbyssChasmBottom - 20; voidIslandY++)
|
||||
{
|
||||
if (WorldGen.genRand.NextBool(8))
|
||||
{
|
||||
int randomIsland = WorldGen.genRand.Next(2); //0 1
|
||||
int randomIsland = WorldGen.genRand.Next(2);
|
||||
switch (randomIsland)
|
||||
{
|
||||
case 0:
|
||||
AbyssIsland(abyssChasmX + 42, voidIslandY, 55, 75, 35, 45, false, true, true);
|
||||
AbyssIsland(abyssChasmX + WorldGen.genRand.Next(42, 48), voidIslandY, 55, 75, 35, 45, false, true, true);
|
||||
break;
|
||||
case 1:
|
||||
AbyssIsland(abyssChasmX - 42, voidIslandY, 55, 75, 35, 45, false, true, true);
|
||||
AbyssIsland(abyssChasmX - WorldGen.genRand.Next(42, 48), voidIslandY, 55, 75, 35, 45, false, true, true);
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.World
|
||||
bool foundValidPosition = false;
|
||||
int dungeonArchiveColor = 0; //0 = blue, 1 = green, 2 = pink
|
||||
|
||||
int heightLimit = (Main.maxTilesY / 2) + (Main.maxTilesY / 7);
|
||||
int heightLimit = (Main.maxTilesY / 2) + (Main.maxTilesY / 9);
|
||||
|
||||
int xMin = WorldGen.dungeonSide == -1 ? 5 : (Main.maxTilesX / 2) + 5;
|
||||
int xMax = WorldGen.dungeonSide == -1 ? (Main.maxTilesX / 2) - 5 : Main.maxTilesX - 5;
|
||||
|
||||
Reference in new issue
Block a user