87876 {
87878 {
87879 return;
87880 }
87883 {
87885 {
87886 MovementVector = Main.rand.NextVector2Circular(1f, 1f),
87887 PositionInWorld = Main.rand.NextVector2FromRectangle(
base.Hitbox)
87888 });
87889 }
87890 if (
poisoned && Main.rand.Next(30) == 0)
87891 {
87893 dust.noGravity = true;
87894 dust.fadeIn = 1.9f;
87895 }
87896 if (
venom && Main.rand.Next(10) == 0)
87897 {
87899 dust2.noGravity = true;
87900 dust2.fadeIn = 1.5f;
87901 }
87903 {
87905 dust3.noGravity = true;
87906 dust3.velocity *= 0.75f;
87907 dust3.velocity.X *= 0.75f;
87908 dust3.velocity.Y -= 1f;
87909 if (Main.rand.Next(4) == 0)
87910 {
87911 dust3.noGravity = false;
87912 dust3.scale *= 0.5f;
87913 }
87914 }
87916 {
87917 if (Main.rand.Next(4) < 3)
87918 {
87920 dust4.noGravity = true;
87921 dust4.velocity *= 1.8f;
87922 dust4.velocity.Y -= 0.5f;
87923 if (Main.rand.Next(4) == 0)
87924 {
87925 dust4.noGravity = false;
87926 dust4.scale *= 0.5f;
87927 }
87928 }
87929 Lighting.AddLight((int)(position.X / 16f), (int)(position.Y / 16f + 1f), 1f, 0.3f, 0.1f);
87930 }
87932 {
87933 if (Main.rand.Next(4) < 3)
87934 {
87936 dust5.noGravity = true;
87937 dust5.velocity *= 1.8f;
87938 dust5.velocity.Y -= 0.5f;
87939 if (Main.rand.Next(4) == 0)
87940 {
87941 dust5.noGravity = false;
87942 dust5.scale *= 0.5f;
87943 }
87944 dust5.customData = 0;
87945 }
87946 Lighting.AddLight((int)(position.X / 16f), (int)(position.Y / 16f + 1f), 1f, 0.3f, 0.1f);
87947 }
87949 {
87950 if (Main.rand.Next(4) < 3)
87951 {
87953 dust6.noGravity = true;
87954 dust6.velocity *= 2.8f;
87955 dust6.velocity.Y -= 0.5f;
87956 if (Main.rand.Next(4) == 0)
87957 {
87958 dust6.noGravity = false;
87959 dust6.scale *= 0.5f;
87960 }
87961 }
87962 Lighting.AddLight((int)(position.X / 16f), (int)(position.Y / 16f + 1f), 1f, 0.3f, 0.1f);
87963 }
87965 {
87966 if (Main.rand.Next(4) < 3)
87967 {
87969 dust7.noGravity = true;
87970 dust7.velocity *= 2.8f;
87971 dust7.velocity.Y -= 1.5f;
87972 dust7.noGravity = false;
87973 dust7.scale = 0.9f;
87974 dust7.color =
new Color(0, 0, 180, 255);
87975 dust7.velocity *= 0.2f;
87976 }
87977 Lighting.AddLight((
int)(
position.
X / 16f), (
int)(
position.
Y / 16f + 1f), 0.6f, 0.1f, 0.9f);
87978 }
87979 if (
oiled && Main.rand.Next(3) != 0)
87980 {
87981 int num = 175;
87984 vector.X -= 2f;
87985 vector.Y -= 2f;
87986 if (Main.rand.Next(2) == 0)
87987 {
87989 if (Main.rand.Next(2) == 0)
87990 {
87991 dust8.alpha += 25;
87992 }
87993 if (Main.rand.Next(2) == 0)
87994 {
87995 dust8.alpha += 25;
87996 }
87997 dust8.noLight = true;
87998 dust8.velocity *= 0.2f;
87999 dust8.velocity.Y += 0.2f;
88001 }
88002 }
88004 {
88006 dust9.noGravity = true;
88007 dust9.noLight = true;
88008 dust9.velocity *= 0f;
88009 }
88010 if (
dryadBane && Main.rand.Next(4) == 0)
88011 {
88013 dust10.noGravity = true;
88014 dust10.velocity *=
new Vector2(Main.rand.NextFloat() * 4f - 2f, 0f);
88015 dust10.noLight = true;
88016 }
88018 {
88021 vector2.X *= 0.66f;
88022 int num2 = Gore.NewGore(
position +
new Vector2(Main.rand.Next(
width + 1), Main.rand.Next(
height + 1)),
vector2 * Main.rand.Next(3, 6) * 0.33f, 331, (
float)Main.rand.Next(40, 121) * 0.01f);
88023 Main.gore[
num2].sticky =
false;
88024 Main.gore[
num2].velocity *= 0.4f;
88025 Main.gore[
num2].velocity.Y -= 0.6f;
88026 }
88027 if (
stinky && Main.rand.Next(5) == 0)
88028 {
88031 vector3.X *= 0.66f;
88035 dust11.velocity *= 0.1f;
88036 dust11.velocity.Y -= 0.5f;
88037 }
88038 if (
dripping && Main.rand.Next(4) != 0)
88039 {
88041 vector5.X -= 2f;
88042 vector5.Y -= 2f;
88043 if (Main.rand.Next(2) == 0)
88044 {
88046 if (Main.rand.Next(2) == 0)
88047 {
88048 dust12.alpha += 25;
88049 }
88050 if (Main.rand.Next(2) == 0)
88051 {
88052 dust12.alpha += 25;
88053 }
88054 dust12.noLight = true;
88055 dust12.velocity *= 0.2f;
88056 dust12.velocity.Y += 0.2f;
88058 }
88059 else
88060 {
88062 if (Main.rand.Next(2) == 0)
88063 {
88064 dust13.alpha += 25;
88065 }
88066 if (Main.rand.Next(2) == 0)
88067 {
88068 dust13.alpha += 25;
88069 }
88070 dust13.noLight = true;
88071 dust13.noGravity = true;
88072 dust13.velocity *= 0.2f;
88073 dust13.velocity.Y += 1f;
88075 }
88076 }
88078 {
88082 vector6.X -= 2f;
88083 vector6.Y -= 2f;
88084 if (Main.rand.Next(2) == 0)
88085 {
88087 if (Main.rand.Next(2) == 0)
88088 {
88089 dust14.alpha += 25;
88090 }
88091 if (Main.rand.Next(2) == 0)
88092 {
88093 dust14.alpha += 25;
88094 }
88095 dust14.noLight = true;
88096 dust14.velocity *= 0.2f;
88097 dust14.velocity.Y += 0.2f;
88099 }
88100 }
88102 {
88105 vector7.X -= 2f;
88106 vector7.Y -= 2f;
88107 if (Main.rand.Next(2) == 0)
88108 {
88110 if (Main.rand.Next(2) == 0)
88111 {
88112 dust15.alpha += 25;
88113 }
88114 if (Main.rand.Next(2) == 0)
88115 {
88116 dust15.alpha += 25;
88117 }
88118 dust15.noLight = true;
88119 dust15.velocity *= 0.2f;
88120 dust15.velocity.Y += 0.2f;
88122 }
88123 }
88125 {
88126 if (Main.rand.Next(4) < 3)
88127 {
88129 dust16.noGravity = true;
88130 dust16.velocity *= 1.8f;
88131 dust16.velocity.Y -= 0.5f;
88132 if (Main.rand.Next(4) == 0)
88133 {
88134 dust16.noGravity = false;
88135 dust16.scale *= 0.5f;
88136 }
88137 }
88138 Lighting.AddLight((
int)(
position.
X / 16f), (
int)(
position.
Y / 16f + 1f), 0.1f, 0.6f, 1f);
88139 }
88141 {
88142 if (Main.rand.Next(4) < 3)
88143 {
88145 dust17.noGravity = true;
88146 dust17.velocity *= 1.8f;
88147 dust17.velocity.Y -= 0.5f;
88148 if (Main.rand.Next(4) == 0)
88149 {
88150 dust17.noGravity = false;
88151 dust17.scale *= 0.5f;
88152 }
88153 }
88154 Lighting.AddLight((
int)(
position.
X / 16f), (
int)(
position.
Y / 16f + 1f), 0.1f, 0.6f, 1f);
88155 }
88157 {
88158 if (Main.rand.Next(4) < 3)
88159 {
88161 dust18.noGravity = true;
88162 dust18.velocity *= 1.8f;
88163 dust18.velocity.Y -= 0.5f;
88164 if (Main.rand.Next(4) == 0)
88165 {
88166 dust18.noGravity = false;
88167 dust18.scale *= 0.5f;
88168 }
88169 }
88170 Lighting.AddLight((
int)(
position.
X / 16f), (
int)(
position.
Y / 16f + 1f), 1f, 0.3f, 0.1f);
88171 }
88174 {
88177 {
88179 }
88181 {
88183 }
88184 }
88186 {
88188 {
88190 }
88192 {
88194 }
88195 else
88196 {
88198 }
88200 {
88202 }
88203 }
88205 }
static double Abs(double value)
static void RequestParticleSpawn(bool clientOnly, ParticleOrchestraType type, ParticleOrchestraSettings settings, int? overrideInvokingPlayerIndex=null)
bool drippingSparkleSlime
float shimmerTransparency