238 {
239 if (!
WorldGen.InWorld(i,
j) || Main.tile[i,
j] ==
null)
240 {
241 return;
242 }
243 if (Main.tile[i,
j].type == 135 || Main.tile[i,
j].type == 314 || Main.tile[i,
j].type == 423 || Main.tile[i,
j].type == 428 || Main.tile[i,
j].type == 442 || Main.tile[i,
j].type == 476)
244 {
247 }
248 else if (Main.tile[i,
j].type == 440)
249 {
252 }
253 else if (Main.tile[i,
j].type == 136)
254 {
255 if (Main.tile[i,
j].frameY == 0)
256 {
257 Main.tile[
i,
j].frameY = 18;
258 }
259 else
260 {
261 Main.tile[
i,
j].frameY = 0;
262 }
265 }
266 else if (Main.tile[i,
j].type == 443)
267 {
269 }
270 else if (Main.tile[i,
j].type == 144)
271 {
272 if (Main.tile[i,
j].frameY == 0)
273 {
274 Main.tile[
i,
j].frameY = 18;
275 if (Main.netMode != 1)
276 {
278 }
279 }
280 else
281 {
282 Main.tile[
i,
j].frameY = 0;
283 }
285 }
286 else if (Main.tile[i,
j].type == 441 || Main.tile[i,
j].type == 468)
287 {
288 int num = Main.tile[
i,
j].frameX / 18 * -1;
289 int num2 = Main.tile[
i,
j].frameY / 18 * -1;
290 num %= 4;
291 if (num < -1)
292 {
293 num += 2;
294 }
299 }
300 else if (Main.tile[i,
j].type == 467)
301 {
302 if (Main.tile[i,
j].frameX / 36 == 4)
303 {
304 int num3 = Main.tile[
i,
j].frameX / 18 * -1;
305 int num4 = Main.tile[
i,
j].frameY / 18 * -1;
308 {
310 }
315 }
316 }
317 else
318 {
319 if (Main.tile[i,
j].type != 132 && Main.tile[i,
j].type != 411)
320 {
321 return;
322 }
324 int num6 = Main.tile[
i,
j].frameX / 18 * -1;
325 int num7 = Main.tile[
i,
j].frameY / 18 * -1;
328 {
331 }
334 if (Main.netMode != 1 && Main.tile[
num6,
num7].type == 411)
335 {
337 }
339 {
341 {
342 if (Main.tile[
k,
l].type == 132 || Main.tile[
k,
l].type == 411)
343 {
344 Main.tile[
k,
l].frameX +=
num5;
345 }
346 }
347 }
351 }
352 }
static void PlaySound(int type, Vector2 position, int style=1)
static bool CheckMech(int i, int j, int time)
static void TripWire(int left, int top, int width, int height)
static void GeyserTrap(int i, int j)