34743 {
34745 {
34746 return;
34747 }
34748 int num = x - 2;
34753 {
34754 return;
34755 }
34756 bool flag = false;
34757 for (
int i = num;
i <
num2;
i++)
34758 {
34760 {
34761 if (Main.tile[i,
j] ==
null)
34762 {
34763 Main.tile[
i,
j] =
new Tile();
34764 }
34765 }
34766 }
34767 int num5 = Main.tile[x, y].frameX / 18;
34768 int num6 = Main.tile[x, y].frameY / 18;
34775 int num11 = Main.tile[x, y].frameX / 18;
34778 {
34781 }
34787 for (
int k = num;
k <
num2;
k++)
34788 {
34791 {
34792 if (!Main.tile[
k,
l].active() || Main.tile[
k,
l].type !=
type)
34793 {
34794 flag = true;
34795 break;
34796 }
34797 if (Main.tile[
k,
l].frameX / 18 !=
num5 +
num9 * 2 || Main.tile[
k,
l].frameY / 18 !=
num6 +
num10 * 2)
34798 {
34799 flag = true;
34800 break;
34801 }
34803 }
34805 }
34806 if (!flag)
34807 {
34809 {
34811 {
34813 }
34814 else
34815 {
34816 flag = true;
34817 }
34818 }
34820 {
34822 }
34824 {
34826 }
34828 {
34830 }
34832 {
34834 }
34835 else if (Main.tile[
num7,
num8].wall > 0 && Main.tile[
num7 + 1,
num8].wall > 0 && Main.tile[
num7,
num8 + 1].wall > 0 && Main.tile[
num7 + 1,
num8 + 1].wall > 0)
34836 {
34838 }
34839 else
34840 {
34841 flag = true;
34842 }
34843 }
34844 if (flag)
34845 {
34847 {
34850 {
34852 if (Main.netMode != 2)
34853 {
34854 Main.LocalPlayer.InterruptItemUsageIfOverTile(395);
34855 }
34856 }
34857 }
34859 for (
int m = num;
m <
num2;
m++)
34860 {
34862 {
34863 if (Main.tile[
m,
n].type ==
type)
34864 {
34866 }
34867 }
34868 }
34870 {
34872 }
34874 {
34875 case 85:
34876 {
34879 {
34881 }
34883 {
34885 }
34887 if (Main.netMode != 1 &&
genRand.Next(2) == 0 &&
NPC.CountNPCS(316) < 2)
34888 {
34890 if (Main.player[
num14].ZoneGraveyard || !Main.dayTime || (
double)y > Main.worldSurface)
34891 {
34893 }
34894 }
34895 break;
34896 }
34897 case 395:
34900 break;
34901 case 425:
34903 break;
34904 case 573:
34906 break;
34907 case 511:
34909 break;
34910 case 510:
34912 break;
34913 default:
34915 break;
34916 }
34918 return;
34919 }
34922 {
34924 {
34929 }
34930 }
34931 }
static Dictionary< int, TileEntity > ByID
static int Find(int x, int y)
static void Kill(int x, int y)
static bool destroyObject
static bool BottomEdgeCanBeAttachedTo(int i, int j)
static bool TopEdgeCanBeAttachedTo(int i, int j)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static UnifiedRandom genRand
static bool RightEdgeCanBeAttachedTo(int i, int j)
static bool LeftEdgeCanBeAttachedTo(int i, int j)
static bool SolidTileAllowBottomSlope(int i, int j)
static IEntitySource GetItemSource_FromTileBreak(int x, int y)