2830 {
2832 {
2833 return false;
2834 }
2836 {
2837 return false;
2838 }
2839 int num = 35;
2841 for (
int k = 0;
k < 255;
k++)
2842 {
2844 {
2845 Rectangle value =
new Rectangle((
int)(Main.player[
k].position.X + (
float)(Main.player[
k].width / 2) - (
float)(
NPC.sWidth / 2) - (
float)
NPC.safeRangeX), (
int)(Main.player[
k].position.Y + (
float)(Main.player[
k].height / 2) - (
float)(
NPC.sHeight / 2) - (
float)
NPC.safeRangeY),
NPC.sWidth +
NPC.safeRangeX * 2,
NPC.sHeight +
NPC.safeRangeY * 2);
2847 {
2848 return false;
2849 }
2850 }
2851 }
2852 for (
int l = 0;
l < 200;
l++)
2853 {
2854 if (Main.npc[
l].active)
2855 {
2858 {
2859 return false;
2860 }
2861 }
2862 }
2863 for (
int m = i - num;
m <
i + num;
m++)
2864 {
2865 for (
int n =
j - num;
n <
j + num;
n++)
2866 {
2867 if (Main.tile[
m,
n].active())
2868 {
2870 {
2871 return false;
2872 }
2873 switch (Main.tile[
m,
n].type)
2874 {
2875 case 226:
2876 case 470:
2877 case 475:
2878 case 488:
2879 case 597:
2880 return false;
2881 }
2882 }
2883 }
2884 }
2888 {
2890 {
2891 if (
num3 <=
j + Main.rand.Next(-2, 3) - 5)
2892 {
2893 continue;
2894 }
2898 {
2899 if (!Main.tileSolid[Main.tile[
num2,
num3].type])
2900 {
2902 }
2904 }
2905 }
2906 }
2909 {
2911 {
2912 if (
num7 >
j + Main.rand.Next(-2, 3) - 4)
2913 {
2917 {
2919 }
2920 }
2921 }
2922 }
2925 {
2927 {
2931 {
2933 {
2935 }
2937 }
2939 {
2941 {
2943 }
2945 {
2947 }
2948 }
2951 }
2952 }
2955 {
2957 {
2959 {
2960 continue;
2961 }
2965 {
2967 {
2969 }
2972 }
2973 }
2974 }
2977 {
2979 {
2981 {
2982 continue;
2983 }
2987 {
2989 {
2991 }
2994 }
2995 }
2996 }
2998 if (Main.netMode == 0)
2999 {
3000 Main.NewText(Lang.gen[59].Value, 50, byte.MaxValue, 130);
3001 }
3002 else if (Main.netMode == 2)
3003 {
3005 }
3006 if (Main.netMode != 1)
3007 {
3008 NetMessage.SendTileSquare(-1, i,
j, 40);
3009 }
3010 return true;
3011 }
static double Sqrt(double d)
static double Abs(double value)
static void BroadcastChatMessage(NetworkText text, Color color, int excludedPlayer=-1)
static bool[] GetsDestroyedForMeteors
static NetworkText FromKey(string key, params object[] substitutions)
static void KillTile(int i, int j, bool fail=false, bool effectOnly=false, bool noItem=false)
static UnifiedRandom genRand
static void SquareWallFrame(int i, int j, bool resetFrame=true)
static void SquareTileFrame(int i, int j, bool resetFrame=true)