Fixed Corruption shrine for good I think
Allowed Crimson shrines to generate a bit deeper
This commit is contained in:
1 parent
63297d25af
commit
66ad3fc0fb
2 files changed
+4
-4
No files matched your search
Binary file not shown.
@@ -75,8 +75,8 @@ namespace CalamityMod.World
|
||||
|
||||
do
|
||||
{
|
||||
int placementPositionX = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.1f), (int)(Main.maxTilesX * 0.9f));
|
||||
int placementPositionY = WorldGen.genRand.Next((int)(Main.maxTilesY * 0.1f), (int)(Main.maxTilesY * 0.5f));
|
||||
int placementPositionX = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.05f), (int)(Main.maxTilesX * 0.95f));
|
||||
int placementPositionY = WorldGen.genRand.Next((int)(Main.maxTilesY * 0.1f), (int)(Main.maxTilesY * 0.6f));
|
||||
Point placementPoint = new Point(placementPositionX, placementPositionY);
|
||||
|
||||
Vector2 schematicSize = new Vector2(TileMaps[mapKey].GetLength(0)/2, TileMaps[mapKey].GetLength(1)); //Fooling the system into thinking the shrine is smaller than it actually is so it fits into chasms
|
||||
@@ -101,7 +101,7 @@ namespace CalamityMod.World
|
||||
canGenerateInLocation = false;
|
||||
}
|
||||
}
|
||||
if (!canGenerateInLocation || corruptStuffInArea < totalTiles * 0.4f || !structures.CanPlace(new Rectangle(placementPoint.X, placementPoint.Y, (int)schematicSize.X, (int)schematicSize.Y)))
|
||||
if (!canGenerateInLocation || corruptStuffInArea < totalTiles * 0.5f || !structures.CanPlace(new Rectangle(placementPoint.X, placementPoint.Y, (int)schematicSize.X, (int)schematicSize.Y)))
|
||||
{
|
||||
tries++;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ namespace CalamityMod.World
|
||||
do
|
||||
{
|
||||
int placementPositionX = WorldGen.genRand.Next((int)(Main.maxTilesX * 0.1f), (int)(Main.maxTilesX * 0.9f));
|
||||
int placementPositionY = WorldGen.genRand.Next((int)(Main.maxTilesY * 0.1f), (int)(Main.maxTilesY * 0.4f));
|
||||
int placementPositionY = WorldGen.genRand.Next((int)(Main.maxTilesY * 0.1f), (int)(Main.maxTilesY * 0.6f));
|
||||
Point placementPoint = new Point(placementPositionX, placementPositionY);
|
||||
|
||||
Vector2 schematicSize = new Vector2(TileMaps[mapKey].GetLength(0), TileMaps[mapKey].GetLength(1));
|
||||
|
||||
Reference in new issue
Block a user