7057 {
7060 {
7062 if ((
double)
num > Main.worldSurface)
7063 {
7064 return false;
7065 }
7066 }
7068 {
7069 return false;
7070 }
7071 if (Main.tile[X,
num].wall > 0)
7072 {
7073 return false;
7074 }
7075 for (int i = X - 10; i <= X + 10; i++)
7076 {
7077 for (
int j =
num + 7;
j <=
num + 30;
j++)
7078 {
7079 if (!Main.tile[i,
j].active() || Main.tileDungeon[Main.tile[i,
j].type] ||
TileID.
Sets.
Clouds[Main.tile[i,
j].type] ||
TileID.
Sets.
Conversion.
Sand[Main.tile[i,
j].type] || Main.tile[i,
j].wall == 0 || Main.tile[i,
j].type == 199 || Main.tile[i,
j].type == 23)
7080 {
7081 return false;
7082 }
7083 }
7084 }
7087 vector2D2.X =
genRand.NextDouble() * 0.6 - 0.3;
7088 vector2D2.Y =
genRand.NextDouble() * 0.5 + 0.5;
7092 {
7094 }
7096 {
7098 }
7100 {
7102 for (
int k = X - (
int)
num2 * 4; (double)
k <= (
double)X +
num2 * 4.0;
k++)
7103 {
7105 {
7108 {
7110 }
7113 {
7115 {
7117 }
7119 {
7121 }
7123 }
7125 {
7126 if (Main.tileSolid[Main.tile[
k,
l].type])
7127 {
7128 Main.tile[
k,
l].type = 1;
7129 }
7131 {
7133 }
7134 }
7135 }
7136 }
7138 vector2D2.X +=
genRand.NextDouble() * 0.2 - 0.1;
7139 vector2D2.Y +=
genRand.NextDouble() * 0.2 - 0.1;
7142 }
7143 return true;
7144 }
static bool PlaceSmallPile(int i, int j, int X, int Y, ushort type=185)
static bool PlaceTile(int i, int j, int Type, bool mute=false, bool forced=false, int plr=-1, int style=0)
static UnifiedRandom genRand
static void SquareTileFrame(int i, int j, bool resetFrame=true)