45793 {
45794 if (Main.tile[i,
j] ==
null)
45795 {
45796 return;
45797 }
45798 short frameX = Main.tile[
i,
j].frameX;
45799 bool flag = false;
45800 if (frameX >= 36)
45801 {
45802 flag = true;
45803 }
45805 {
45806 return;
45807 }
45810 num = ((Main.tile[
i,
j].frameX != 0 && Main.tile[
i,
j].frameX != 36) ? (i - 1) :
i);
45811 num2 = ((Main.tile[
i,
j].frameY != 0) ? (
j - 1) :
j);
45812 for (
int k = 0;
k < 2;
k++)
45813 {
45814 for (
int l = 0;
l < 2;
l++)
45815 {
45817 if (tile !=
null && (!tile.nactive() || tile.type !=
type))
45818 {
45820 break;
45821 }
45822 }
45824 {
45825 break;
45826 }
45828 {
45829 Tile tile = Main.tile[num +
k,
num2 + 2];
45831 {
45833 break;
45834 }
45835 }
45836 }
45838 {
45839 return;
45840 }
45841 for (
int m = num;
m < num + 2;
m++)
45842 {
45844 {
45845 if (Main.tile[
m,
n] !=
null && Main.tile[
m,
n].type ==
type)
45846 {
45848 }
45849 }
45850 }
45852 {
45854 {
45855 case 12:
45857 break;
45858 case 639:
45860 break;
45861 case 31:
45862 if (flag)
45863 {
45864 int num3 = Main.rand.Next(5);
45866 {
45868 }
45870 {
45871 case 0:
45872 {
45874 int stack =
genRand.Next(100, 101);
45876 break;
45877 }
45878 case 1:
45880 break;
45881 case 2:
45883 break;
45884 case 3:
45886 break;
45887 case 4:
45889 break;
45890 }
45891 }
45892 else
45893 {
45894 int num4 = Main.rand.Next(5);
45896 {
45898 }
45900 {
45901 case 0:
45902 {
45906 break;
45907 }
45908 case 1:
45910 break;
45911 case 2:
45913 break;
45914 case 3:
45916 break;
45917 case 4:
45919 break;
45920 }
45921 }
45925 {
45926 if (!(
NPC.AnyNPCs(266) && flag) && (!
NPC.AnyNPCs(13) || flag))
45927 {
45929 float num5 = num * 16;
45934 {
45937 {
45940 }
45941 }
45942 if (flag)
45943 {
45944 NPC.SpawnOnPlayer(
plr, 266);
45945 }
45946 else
45947 {
45948 NPC.SpawnOnPlayer(
plr, 13);
45949 }
45950 }
45951 }
45952 else
45953 {
45956 {
45958 }
45959 if (Main.netMode == 0)
45960 {
45961 Main.NewText(
localizedText.ToString(), 50,
byte.MaxValue, 130);
45962 }
45963 else if (Main.netMode == 2)
45964 {
45966 }
45967 }
45969 break;
45970 }
45971 }
45972 if (flag)
45973 {
45975 }
45976 else
45977 {
45979 }
45981 }
static double Abs(double value)
static void PlaySound(int type, Vector2 position, int style=1)
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
static void NotifyProgressionEvent(int eventID)
static NetworkText FromKey(string key, params object[] substitutions)
static bool destroyObject
static int shadowOrbCount
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static UnifiedRandom genRand
static bool noTileActions
static bool SolidTileAllowBottomSlope(int i, int j)
static IEntitySource GetItemSource_FromTileBreak(int x, int y)
static bool shadowOrbSmashed