76175 {
76176 for (
int i = x - 1;
i <= x + 1;
i++)
76177 {
76178 for (
int j = y - 1;
j <= y + 1;
j++)
76179 {
76180 if (Main.tile[i,
j] ==
null)
76181 {
76182 return;
76183 }
76184 }
76185 }
76186 Tile tile = Main.tile[x, y];
76195 short num = 0;
76196 if (tile.frameX >= 66)
76197 {
76198 num = 66;
76199 }
76208 {
76210 }
76212 {
76214 }
76216 {
76218 }
76220 {
76222 }
76224 {
76226 }
76228 {
76230 }
76232 {
76234 }
76236 {
76238 }
76240 {
76241 tile.frameX = num;
76242 }
76244 {
76245 tile.frameX = (
short)(22 + num);
76246 }
76248 {
76249 tile.frameX = (
short)(44 + num);
76250 }
76251 else if (tile.wall > 0)
76252 {
76253 tile.frameX = num;
76254 }
76255 else
76256 {
76258 }
76259 }
static bool IsTreeType(int tree)
static bool TopEdgeCanBeAttachedTo(int i, int j)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)