53066 {
53067 if (Main.tile[x, y] == null)
53068 {
53069 Main.tile[x, y] =
new Tile();
53070 }
53071 Tile tile = Main.tile[x, y];
53072 if (y >= 1 && y <= Main.maxTilesY - 1)
53073 {
53074 if (Main.tile[x, y - 1] == null)
53075 {
53076 Main.tile[x, y - 1] =
new Tile();
53077 }
53078 if (Main.tile[x, y + 1] == null)
53079 {
53080 Main.tile[x, y + 1] =
new Tile();
53081 }
53085 {
53086 return 2;
53087 }
53088 if (!Main.tileSolid[tile.type] && !Main.tileSolidTop[tile.type])
53089 {
53090 return 0;
53091 }
53092 if (
tile2.active())
53093 {
53095 {
53097 {
53099 {
53100 return 0;
53101 }
53102 return 2;
53103 }
53104 if (
tile2.type == 323)
53105 {
53106 if (
tile2.frameX == 66 ||
tile2.frameX == 220)
53107 {
53108 return 2;
53109 }
53110 return 0;
53111 }
53112 return 2;
53113 }
53114 if (
tile2.type == 80 &&
tile2.type != tile.type)
53115 {
53116 int num = tile2.frameX / 18;
53117 if ((uint)num <= 1
u || (uint)(num - 4) <= 1
u)
53118 {
53119 return 2;
53120 }
53121 }
53123 {
53124 return 1;
53125 }
53127 {
53129 {
53130 return 1;
53131 }
53132 return 0;
53133 }
53134 }
53135 if (tile.type == 235)
53136 {
53137 int frameX = tile.frameX;
53138 int num2 = x - frameX % 54 / 18;
53139 for (
int i = 0;
i < 3;
i++)
53140 {
53142 {
53143 return 2;
53144 }
53145 }
53146 }
53147 }
53148 return 0;
53149 }
static bool[] PreventsTileRemovalIfOnTopOfIt
static bool[] IsATreeTrunk
static bool IsAContainer(Tile t)
static bool IsLockedDoor(int x, int y)
static bool CheckBoulderChest(int i, int j)