36383 {
36385 {
36388 {
36390 }
36391 if (Main.rand.Next(
maxValue) == 0)
36392 {
36394 }
36395 }
36396 else if (
type == 757)
36397 {
36398 int num = 4;
36400 {
36401 num = 10;
36402 }
36404 {
36405 num /= 2;
36406 }
36407 for (
int i = 0;
i < 2;
i++)
36408 {
36409 if (Main.rand.Next(num) == 0)
36410 {
36413 dust.fadeIn = 1.3f;
36414 }
36415 }
36416 num = 40;
36418 {
36419 num /= 2;
36420 }
36422 {
36423 if (Main.rand.Next(num) == 0)
36424 {
36425 Dust.NewDustDirect(
Vector2.
Lerp(Main.player[
owner].Center,
base.Center, Main.rand.NextFloat()) +
new Vector2(-8f), 16, 16, 5, 0f, 0f, 0,
default(
Color), 1.3f).velocity +=
velocity / 4f;
36426 }
36427 }
36428 }
36429 else if (
type == 26)
36430 {
36432 Main.dust[
num3].noGravity =
true;
36433 Main.dust[
num3].velocity.X /= 2f;
36434 Main.dust[
num3].velocity.Y /= 2f;
36435 }
36436 else if (
type == 948 && !
wet)
36437 {
36439 Main.dust[
num4].noGravity =
true;
36440 Main.dust[
num4].velocity.X *= 4f;
36441 Main.dust[
num4].velocity.Y *= 4f;
36443 }
36444 else if (
type == 35)
36445 {
36447 Main.dust[
num5].noGravity =
true;
36448 Main.dust[
num5].velocity.X *= 2f;
36449 Main.dust[
num5].velocity.Y *= 2f;
36450 }
36451 else if (
type == 154)
36452 {
36454 Main.dust[
num6].noGravity =
true;
36455 Main.dust[
num6].velocity *= 0.25f;
36456 }
36457 }
static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)