Definition at line 23593 of file WorldGen.cs.
23594 {
23595 int num = 0;
23598 if (Main.tile[i,
j] ==
null)
23599 {
23600 Main.tile[
i,
j] =
new Tile();
23601 }
23602 int frameX = Main.tile[
i,
j].frameX;
23603 Tile tile = Main.tile[
i,
j];
23604 if (tile.type != 11)
23605 {
23606 return false;
23607 }
23608 int num4 = tile.frameY;
23612 {
23615 }
23616 if (frameX >= 72)
23617 {
23618 num5 += 36 * (frameX / 72);
23619 num6 += 54 * (frameX / 72);
23620 }
23622 switch (frameX % 72)
23623 {
23624 case 0:
23626 num = 1;
23627 break;
23628 case 18:
23630 num = 1;
23631 break;
23632 case 36:
23634 num = -1;
23635 break;
23636 case 54:
23638 num = -1;
23639 break;
23640 }
23642 if (num == -1)
23643 {
23645 }
23647 {
23649 {
23651 {
23652 return false;
23653 }
23654 }
23655 }
23657 {
23659 {
23661 {
23662 if (Main.tile[
l,
m] ==
null)
23663 {
23664 Main.tile[
l,
m] =
new Tile();
23665 }
23666 Main.tile[
l,
m].type = 10;
23668 }
23669 else
23670 {
23671 if (Main.tile[
l,
m] ==
null)
23672 {
23673 Main.tile[
l,
m] =
new Tile();
23674 }
23675 Main.tile[
l,
m].active(active:
false);
23676 }
23677 }
23678 }
23679 if (Main.netMode != 1 &&
Wiring.running)
23680 {
23684 }
23686 {
23688 {
23690 }
23691 }
23693 return true;
23694 }
static void PlaySound(int type, Vector2 position, int style=1)
static UnifiedRandom genRand
static void TileFrame(int i, int j, bool resetFrame=false, bool noBreak=false)
References Terraria.Collision.EmptyTile(), Terraria.Tile.frameY, Terraria.Main.netMode, Terraria.Audio.SoundEngine.PlaySound(), Terraria.Wiring.running, Terraria.Wiring.SkipWire(), Terraria.DataStructures.Tile, Terraria.Main.tile, and Terraria.Tile.type.
Referenced by Terraria.NPC.AI_007_TownEntities(), Terraria.MessageBuffer.GetData(), Terraria.Wiring.HitWireSingle(), Terraria.Player.TileInteractionsUse(), and Terraria.GameContent.DoorOpeningHelper.CommonDoorOpeningInfoProvider.TryCloseDoor().