21845 {
21847 {
21848 return;
21849 }
21850 bool flag = false;
21852 {
21853 flag = true;
21854 }
21855 int num =
width / 2;
21860 {
21865 {
21867 if (
stickyBreak > Main.rand.Next(20, 100) || flag)
21868 {
21871 if (Main.netMode == 1 && !Main.tile[
num3,
num4].active() && Main.netMode == 1)
21872 {
21873 NetMessage.SendData(17, -1, -1,
null, 0,
num3,
num4);
21874 }
21875 }
21876 }
21877 if (flag)
21878 {
21879 return;
21880 }
21883 {
21885 }
21887 {
21888 velocity.X = 1f;
21889 }
21891 {
21892 velocity.X = -1f;
21893 }
21894 if ((
double)velocity.X > 0.75 || (double)
velocity.
X < -0.75)
21895 {
21896 velocity.X *= 0.85f;
21897 }
21898 else
21899 {
21900 velocity.X *= 0.6f;
21901 }
21903 {
21905 {
21906 velocity.Y = -1f;
21907 }
21909 {
21910 velocity.Y = 5f;
21911 }
21913 {
21914 velocity.Y *= 0.96f;
21915 }
21916 else
21917 {
21918 velocity.Y *= 0.3f;
21919 }
21920 }
21921 else
21922 {
21924 {
21925 velocity.Y = 1f;
21926 }
21928 {
21929 velocity.Y = -5f;
21930 }
21932 {
21933 velocity.Y *= 0.96f;
21934 }
21935 else
21936 {
21937 velocity.Y *= 0.3f;
21938 }
21939 }
21940 if (
type != 229 || Main.rand.Next(5) != 0 || (!((double)
velocity.
Y > 0.15) && !(velocity.Y < 0f)))
21941 {
21942 return;
21943 }
21945 {
21947 Main.dust[
num5].scale += (float)Main.rand.Next(0, 6) * 0.1f;
21948 Main.dust[
num5].velocity *= 0.1f;
21949 Main.dust[
num5].noGravity =
true;
21950 }
21951 else
21952 {
21954 Main.dust[
num6].scale += (float)Main.rand.Next(0, 6) * 0.1f;
21955 Main.dust[
num6].velocity *= 0.1f;
21956 Main.dust[
num6].noGravity =
true;
21957 }
21959 {
21961 {
21963 Main.dust[
num7].scale += (float)Main.rand.Next(0, 6) * 0.1f;
21964 Main.dust[
num7].velocity *= 0.1f;
21965 Main.dust[
num7].noGravity =
true;
21966 }
21967 else
21968 {
21970 Main.dust[
num8].scale += (float)Main.rand.Next(0, 6) * 0.1f;
21971 Main.dust[
num8].velocity *= 0.1f;
21972 Main.dust[
num8].noGravity =
true;
21973 }
21974 }
21976 {
21978 {
21980 Main.dust[
num9].scale += (float)Main.rand.Next(0, 6) * 0.1f;
21981 Main.dust[
num9].velocity *= 0.1f;
21982 Main.dust[
num9].noGravity =
true;
21983 }
21984 else
21985 {
21987 Main.dust[
num10].scale += (float)Main.rand.Next(0, 6) * 0.1f;
21988 Main.dust[
num10].velocity *= 0.1f;
21989 Main.dust[
num10].noGravity =
true;
21990 }
21991 }
21992 }
21993 else
21994 {
21996 }
21997 }
static double Abs(double value)