25917 {
25923 double num = (double)tRooms * 1.9;
25924 num *= 1.0 + (double)
genRand.Next(-15, 16) * 0.01;
25926 while (num > 0.0)
25927 {
25931 {
25933 {
25934 num -= 1.0;
25936 }
25937 else
25938 {
25940 }
25941 }
25942 else
25943 {
25945 }
25947 {
25949 num -= 1.0;
25950 }
25951 }
25952 Main.tileSolid[232] = false;
25953 double num5 = (double)tRooms * 0.35;
25954 num5 *= 1.0 + (double)
genRand.Next(-15, 16) * 0.01;
25958 {
25962 {
25965 }
25968 {
25969 break;
25970 }
25971 }
25972 double num8 = (double)tRooms * 1.25;
25973 num8 *= 1.0 + (double)
genRand.Next(-25, 36) * 0.01;
25976 {
25981 {
25982 continue;
25983 }
25987 {
25989 if (
num12 > tBottom)
25990 {
25991 break;
25992 }
25993 }
25995 if (
num12 <= tBottom)
25996 {
25999 {
26001 }
26002 }
26003 }
26004 double num13 = (double)tRooms * 1.35;
26007 while (
num13 > 0.0)
26008 {
26013 {
26017 {
26019 if (
num17 > tBottom)
26020 {
26021 break;
26022 }
26023 }
26025 if (
num17 <= tBottom)
26026 {
26028 {
26029 case 0:
26032 {
26034 }
26035 break;
26036 case 1:
26039 {
26041 }
26042 break;
26043 case 2:
26046 {
26048 }
26049 break;
26050 }
26051 }
26052 }
26054 {
26055 break;
26056 }
26057 }
26059 if (Main.maxTilesX > 4200)
26060 {
26062 }
26063 if (Main.maxTilesX > 6400)
26064 {
26066 }
26069 {
26074 {
26075 bool flag = false;
26076 for (
int i = -70;
i <= 70;
i++)
26077 {
26078 for (
int j = -70;
j <= 70;
j++)
26079 {
26083 {
26084 continue;
26085 }
26087 if (tile.active())
26088 {
26089 if (tile.type == 240)
26090 {
26091 flag = true;
26092 break;
26093 }
26095 {
26096 flag = true;
26097 break;
26098 }
26099 }
26100 }
26101 if (flag)
26102 {
26103 break;
26104 }
26105 }
26106 if (flag)
26107 {
26108 continue;
26109 }
26111 {
26113 }
26114 }
26116 {
26117 break;
26118 }
26119 }
26120 Main.tileSolid[232] = true;
26121 }
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 bool AddBuriedChest(Point point, int contain=0, bool notNearOtherChests=false, int Style=-1)
static bool mayanTrap(int x2, int y2)
static bool InWorld(int x, int y, int fluff=0)