TModLoader v1.4.4.9
TModLoader source code documentation
Loading...
Searching...
No Matches

◆ Spawn_LoadOutChange()

static void Terraria.GameContent.Drawing.ParticleOrchestrator.Spawn_LoadOutChange ( ParticleOrchestraSettings settings)
inlinestaticprivate

Definition at line 461 of file ParticleOrchestrator.cs.

462 {
463 //IL_0019: Unknown result type (might be due to invalid IL or missing references)
464 //IL_001e: Unknown result type (might be due to invalid IL or missing references)
465 //IL_0052: Unknown result type (might be due to invalid IL or missing references)
466 //IL_0053: Unknown result type (might be due to invalid IL or missing references)
467 //IL_0068: Unknown result type (might be due to invalid IL or missing references)
468 //IL_006e: Unknown result type (might be due to invalid IL or missing references)
469 //IL_0091: Unknown result type (might be due to invalid IL or missing references)
470 //IL_00aa: Unknown result type (might be due to invalid IL or missing references)
471 //IL_00c8: Unknown result type (might be due to invalid IL or missing references)
472 //IL_00ce: Unknown result type (might be due to invalid IL or missing references)
473 //IL_00d0: Unknown result type (might be due to invalid IL or missing references)
474 //IL_00d5: Unknown result type (might be due to invalid IL or missing references)
475 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
476 //IL_00e2: Unknown result type (might be due to invalid IL or missing references)
477 //IL_00ec: Unknown result type (might be due to invalid IL or missing references)
478 //IL_00fb: Unknown result type (might be due to invalid IL or missing references)
479 //IL_0100: Unknown result type (might be due to invalid IL or missing references)
480 //IL_0105: Unknown result type (might be due to invalid IL or missing references)
481 //IL_013b: Unknown result type (might be due to invalid IL or missing references)
482 //IL_013c: Unknown result type (might be due to invalid IL or missing references)
483 //IL_016b: Unknown result type (might be due to invalid IL or missing references)
484 //IL_0191: Unknown result type (might be due to invalid IL or missing references)
485 //IL_01aa: Unknown result type (might be due to invalid IL or missing references)
486 //IL_01c8: Unknown result type (might be due to invalid IL or missing references)
487 //IL_01ce: Unknown result type (might be due to invalid IL or missing references)
488 //IL_01d0: Unknown result type (might be due to invalid IL or missing references)
489 //IL_01d5: Unknown result type (might be due to invalid IL or missing references)
490 //IL_01dc: Unknown result type (might be due to invalid IL or missing references)
491 //IL_01e2: Unknown result type (might be due to invalid IL or missing references)
492 //IL_01ec: Unknown result type (might be due to invalid IL or missing references)
493 //IL_01fb: Unknown result type (might be due to invalid IL or missing references)
494 //IL_0200: Unknown result type (might be due to invalid IL or missing references)
495 //IL_0205: Unknown result type (might be due to invalid IL or missing references)
496 Player player = Main.player[settings.IndexOfPlayerWhoInvokedThis];
497 if (player.active)
498 {
499 Rectangle hitbox = player.Hitbox;
500 int num = 6;
501 hitbox.Height -= num;
502 if (player.gravDir == 1f)
503 {
504 hitbox.Y += num;
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(0f, (float)(-hitbox.Height) * Main.rand.NextFloat() * 0.04f), Main.rand.NextFloatDirection() * ((float)Math.PI * 2f) * 0.1f);
510 dust.velocity += player.velocity * 2f * 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(0f, (float)(-hitbox.Height) * Main.rand.NextFloat() * 0.04f), Main.rand.NextFloatDirection() * ((float)Math.PI * 2f) * 0.1f);
518 dust2.velocity += player.velocity * 2f * Main.rand.NextFloat();
519 dust2.noGravity = true;
520 dust2.noLight = (dust2.noLightEmittence = true);
521 }
522 }
523 }

References Terraria.Entity.active, Terraria.Player.gravDir, Terraria.Entity.Hitbox, Terraria.Main.hslToRgb(), Terraria.Dust.NewDustPerfect(), Terraria.Main.player, Terraria.Main.rand, and Terraria.Utils.RotatedBy().

Referenced by Terraria.GameContent.Drawing.ParticleOrchestrator.SpawnParticlesDirect().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: