461 {
463 {
464 return;
465 }
469 {
471 {
472 Tile tile = Main.tile[
i,
j];
474 bool num = !tile.active() ||
TileID.
Sets.
BreakableWhenPlacing[tile.type] || (Main.tileCut[tile.type] && tile.type != 82 && tile.type != 83) ||
WorldGen.IsHarvestableHerbWithSeed(tile.type, tile.frameX / 18);
475 bool flag =
tile2.nactive() && !
tile2.halfBrick() &&
tile2.slope() == 0;
476 if (!num || !flag)
477 {
478 continue;
479 }
480 switch (placeStyle)
481 {
482 case 0:
484 {
485 continue;
486 }
487 break;
488 case 1:
489 if ((
tile2.type != 78 &&
tile2.type != 380 &&
tile2.type != 60) || tile.liquid > 0)
490 {
491 continue;
492 }
493 break;
494 case 2:
495 if ((
tile2.type != 78 &&
tile2.type != 380 &&
tile2.type != 0 &&
tile2.type != 59) || tile.liquid > 0)
496 {
497 continue;
498 }
499 break;
500 case 3:
502 {
503 continue;
504 }
505 break;
506 case 4:
507 if ((
tile2.type != 78 &&
tile2.type != 380 &&
tile2.type != 53 &&
tile2.type != 116) || (tile.liquid > 0 && tile.lava()))
508 {
509 continue;
510 }
511 break;
512 case 5:
513 if ((
tile2.type != 78 &&
tile2.type != 380 &&
tile2.type != 57 &&
tile2.type != 633) || (tile.liquid > 0 && !tile.lava()))
514 {
515 continue;
516 }
517 break;
518 case 6:
519 if ((
tile2.type != 78 &&
tile2.type != 380 &&
tile2.type != 147 &&
tile2.type != 161 &&
tile2.type != 163 &&
tile2.type != 164 &&
tile2.type != 200) || (tile.liquid > 0 && tile.lava()))
520 {
521 continue;
522 }
523 break;
524 }
526 }
527 }
529 {
533 {
536 {
539 }
540 }
542 {
545 }
546 }
548 }
static List< Tuple< int, int > > _targets
static bool[] BreakableWhenPlacing
static float Distance(Vector2 value1, Vector2 value2)