88945 {
88946 if (Main.netMode == 2)
88947 {
88948 return;
88949 }
88950 if (
type == 611 && !Main.dayTime && Main.rand.Next(700) == 0)
88951 {
88953 }
88954 if (
type >= 602 &&
type <= 603 && Main.dayTime && Main.rand.Next(1200) == 0)
88955 {
88957 }
88959 {
88960 if (Main.dayTime && Main.rand.Next(200) == 0)
88961 {
88963 }
88964 }
88966 {
88967 if ((
double)
Math.
Abs(
velocity.
X) < 0.5 && (!Main.dayTime || (
double)
position.
Y > Main.worldSurface * 16.0) && Main.rand.Next(200) == 0)
88968 {
88970 }
88971 }
88973 {
88974 if (!Main.dayTime || !(Main.time < 18000.0))
88975 {
88976 return;
88977 }
88979 if (Main.rand.Next(
maxValue) != 0)
88980 {
88981 return;
88982 }
88984 {
88985 if (Main.rand.Next(3) != 0)
88986 {
88988 }
88989 else
88990 {
88992 }
88993 }
88995 {
88997 }
88999 {
89000 if (Main.rand.Next(3) != 0)
89001 {
89003 }
89004 else
89005 {
89007 }
89008 }
89010 {
89012 }
89014 {
89016 }
89018 {
89020 }
89022 {
89023 switch (Main.rand.Next(5))
89024 {
89025 case 0:
89027 break;
89028 case 1:
89030 break;
89031 case 2:
89033 break;
89034 case 3:
89036 break;
89037 default:
89039 break;
89040 }
89041 }
89042 }
89043 else if ((
type == 300 ||
type == 447 ||
type == 610) && Main.rand.Next(1800) == 0)
89044 {
89046 }
89047 }
static double Abs(double value)
static void PlaySound(int type, Vector2 position, int style=1)