27416 {
27422 double num = (double)tRooms * 1.9;
27423 num *= 1.0 + (double)
genRand.Next(-15, 16) * 0.01;
27426 {
27430 {
27432 {
27435 }
27436 else
27437 {
27439 }
27440 }
27441 else
27442 {
27444 }
27446 {
27449 }
27450 }
27451 Main.tileSolid[232] = false;
27452 double num18 = (double)tRooms * 0.35;
27456 while (
num18 > 0.0)
27457 {
27461 {
27464 }
27467 {
27468 break;
27469 }
27470 }
27471 double num21 = (double)tRooms * 1.25;
27474 while (
num21 > 0.0)
27475 {
27480 {
27481 continue;
27482 }
27485 while (!Main.tile[
num3,
num4].active())
27486 {
27488 if (
num4 > tBottom)
27489 {
27490 break;
27491 }
27492 }
27494 if (
num4 <= tBottom)
27495 {
27497 if (Main.tile[
num3,
num4].type == 105)
27498 {
27500 }
27501 }
27502 }
27503 double num5 = (double)tRooms * 1.35;
27504 num5 *= 1.0 + (double)
genRand.Next(-15, 26) * 0.01;
27507 {
27512 {
27515 while (!Main.tile[
num8,
num9].active())
27516 {
27518 if (
num9 > tBottom)
27519 {
27520 break;
27521 }
27522 }
27524 if (
num9 <= tBottom)
27525 {
27527 {
27528 case 0:
27530 if (Main.tile[
num8,
num9].type == 18)
27531 {
27533 }
27534 break;
27535 case 1:
27537 if (Main.tile[
num8,
num9].type == 14)
27538 {
27540 }
27541 break;
27542 case 2:
27544 if (Main.tile[
num8,
num9].type == 15)
27545 {
27547 }
27548 break;
27549 }
27550 }
27551 }
27553 {
27554 break;
27555 }
27556 }
27558 if (Main.maxTilesX > 4200)
27559 {
27561 }
27562 if (Main.maxTilesX > 6400)
27563 {
27565 }
27568 {
27573 {
27575 for (int i = -70; i <= 70; i++)
27576 {
27577 for (
int j = -70;
j <= 70;
j++)
27578 {
27582 {
27583 continue;
27584 }
27586 if (tile.active())
27587 {
27588 if (tile.type == 240)
27589 {
27591 break;
27592 }
27594 {
27596 break;
27597 }
27598 }
27599 }
27601 {
27602 break;
27603 }
27604 }
27606 {
27607 continue;
27608 }
27610 {
27612 }
27613 }
27615 {
27616 break;
27617 }
27618 }
27619 Main.tileSolid[232] = true;
27620 }
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)