462 {
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496 Player player = Main.player[
settings.IndexOfPlayerWhoInvokedThis];
497 if (player.active)
498 {
499 Rectangle
hitbox = player.Hitbox;
501 hitbox.Height -=
num;
502 if (player.gravDir == 1
f)
503 {
505 }
506 for (int i = 0; i < 40; i++)
507 {
508 Dust dust = Dust.NewDustPerfect(Main.rand.NextVector2FromRectangle(
hitbox), 16,
null, 120,
default(Color), Main.rand.NextFloat() * 0.8f + 0.8f);
509 dust.velocity = Utils.RotatedBy(
new Vector2(0
f, (
float)(-
hitbox.Height) * Main.rand.NextFloat() * 0.04f), Main.rand.NextFloatDirection() * ((
float)
Math.PI * 2
f) * 0.1f);
510 dust.velocity += player.velocity * 2
f * Main.rand.NextFloat();
511 dust.noGravity = true;
512 dust.noLight = (dust.noLightEmittence = true);
513 }
514 for (
int j = 0;
j < 5;
j++)
515 {
516 Dust
dust2 = Dust.NewDustPerfect(Main.rand.NextVector2FromRectangle(
hitbox), 43,
null, 254, Main.hslToRgb(Main.rand.NextFloat(), 0.3f, 0.8f), Main.rand.NextFloat() * 0.8f + 0.8f);
517 dust2.velocity = Utils.RotatedBy(
new Vector2(0
f, (
float)(-
hitbox.Height) * Main.rand.NextFloat() * 0.04f), Main.rand.NextFloatDirection() * ((float)
Math.PI * 2
f) * 0.1f);
518 dust2.velocity += player.velocity * 2
f * Main.rand.NextFloat();
519 dust2.noGravity = true;
520 dust2.noLight = (dust2.noLightEmittence = true);
521 }
522 }
523 }