18786 {
18787 int num = y;
18789 {
18790 return false;
18791 }
18792 while (Main.tile[i, num].type == 20)
18793 {
18794 num++;
18795 if (Main.tile[i, num] == null)
18796 {
18797 return false;
18798 }
18799 }
18800 Tile tile = Main.tile[
i, num];
18802 byte color = 0;
18803 if (Main.tenthAnniversaryWorld && !
gen)
18804 {
18805 color = (byte)
genRand.Next(1, 13);
18806 }
18807 tile.slope();
18808 tile.halfBrick();
18809 if (!tile.active() || tile.halfBrick() || tile.slope() != 0)
18810 {
18811 return false;
18812 }
18814 {
18815 return false;
18816 }
18817 if (tile.type != 53 && tile.type != 234 && tile.type != 116 && tile.type != 112)
18818 {
18819 return false;
18820 }
18822 {
18823 return false;
18824 }
18826 {
18827 return false;
18828 }
18833 for (
int j = 0;
j <
num2;
j++)
18834 {
18835 tile = Main.tile[
i, num - 1 -
j];
18837 {
18838 tile.active(active:
true);
18839 tile.type = 323;
18840 tile.frameX = 66;
18841 tile.frameY = 0;
18842 tile.color(color);
18843 continue;
18844 }
18846 {
18847 tile.active(active:
true);
18848 tile.type = 323;
18850 tile.frameY =
num4;
18851 tile.color(color);
18852 continue;
18853 }
18855 {
18856 double num5 = (double)
j / (
double)
num2;
18857 bool flag = false;
18859 {
18862 }
18863 }
18864 tile.active(active:
true);
18865 tile.type = 323;
18867 tile.frameY =
num4;
18868 tile.color(color);
18869 }
18871 NetMessage.SendTileSquare(-1, i, num -
num2, 1,
num2);
18872 return true;
18873 }
static int Sign(decimal value)
static UnifiedRandom genRand
static bool EmptyTileCheck(int startX, int endX, int startY, int endY, int ignoreID=-1)
static void RangeFrame(int startX, int startY, int endX, int endY)
static bool InWorld(int x, int y, int fluff=0)