19605 {
19606
19607
19608
19609
19610 int num = 0;
19611 int[]
array =
new int[1000];
19612 int[]
array2 =
new int[1000];
19613 int[]
array3 =
new int[1000];
19614 int[]
array4 =
new int[1000];
19616 int[]
array5 =
new int[2000];
19617 int[]
array6 =
new int[2000];
19618 bool[]
array7 =
new bool[2000];
19620 {
19621 return false;
19622 }
19623 if (Main.tile[i,
j].active())
19624 {
19625 return false;
19626 }
19627 if (Main.tile[i,
j + 1].type != 0 && Main.tile[i,
j + 1].type != 2 && Main.tile[i,
j + 1].type != 1 && Main.tile[i,
j + 1].type != 40 && !
TileID.
Sets.
Ore[Main.tile[i,
j + 1].type] && (!
remixWorldGen || !
notTheBees || (Main.tile[i,
j + 1].type != 60 && Main.tile[i,
j + 1].type != 59)))
19628 {
19629 return false;
19630 }
19632 {
19633 return false;
19634 }
19638 {
19640 {
19642 }
19643 else
19644 {
19646 }
19647 }
19649 bool flag =
num5 >= 4;
19653 {
19659 }
19661 {
19662 for (
int l = 5;
l <
j - 5;
l++)
19663 {
19664 if (Main.tile[
k,
l].active())
19665 {
19667 {
19668 return false;
19669 }
19670 int type = Main.tile[
k,
l].type;
19672 {
19673 return false;
19674 }
19675 }
19676 }
19677 }
19687 Main.tileSolid[48] = false;
19689 {
19692 {
19697 {
19699 }
19701 {
19706 {
19708 }
19711 }
19712 else
19713 {
19718 {
19720 }
19723 }
19725 {
19727 }
19728 num++;
19729 }
19731 {
19732 Main.tile[
m,
num12].type = 191;
19735 }
19737 }
19738 for (
int n = 0;
n < num - 1;
n++)
19739 {
19748 {
19754 {
19756 }
19757 else
19758 {
19760 }
19762 {
19764 }
19765 else if (
genRand.Next(2) == 0)
19766 {
19769 {
19779 }
19780 else
19781 {
19791 }
19792 }
19794 {
19798 }
19799 }
19800 }
19807 {
19812 {
19814 }
19816 {
19818 }
19820 {
19822 {
19823 continue;
19824 }
19829 {
19831 }
19833 {
19835 }
19838 {
19845 {
19850 }
19852 {
19857 }
19859 {
19861 }
19862 else if (
genRand.Next(3) == 0)
19863 {
19879 }
19880 }
19881 }
19886 {
19891 }
19894 }
19896 {
19900 {
19902 {
19904 }
19909 }
19913 {
19920 {
19922 }
19927 {
19931 {
19935 }
19938 {
19942 }
19944 {
19947 }
19949 {
19951 }
19953 {
19955 }
19956 }
19957 }
19958 }
19960 {
19962 }
19964 {
19968 {
19970 }
19977 {
19979 {
19981 {
19982 continue;
19983 }
19985 {
19988 {
19992 }
19993 }
19995 {
19999 }
20000 }
20002 {
20005 {
20007 {
20008 }
20009 if (Main.tile[
num48,
num50 + 1].type == 192)
20010 {
20012 }
20013 }
20014 }
20016 {
20017 continue;
20018 }
20022 {
20023 continue;
20024 }
20026 {
20027 }
20028 if (Main.tile[
num48,
num51 + 1].type == 192)
20029 {
20030 continue;
20031 }
20033 {
20035 continue;
20036 }
20038 int x = 72;
20040 {
20042 }
20044 }
20045 }
20046 if (flag)
20047 {
20048 bool flag3 =
false;
20050 {
20052 {
20054 {
20056 }
20057 }
20058 }
20060 {
20062 }
20063 }
20064 Main.tileSolid[48] = true;
20065 return true;
20066 }
static double Abs(double value)
static bool remixWorldGen
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 GrowLivingTree_MakePassage(int j, int W, ref int minl, ref int minr, bool noSecretRoom=false)