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

◆ DoRainbowCrystalStaffExplosion()

void Terraria.Projectile.DoRainbowCrystalStaffExplosion ( )
inlineprivate

Definition at line 91609 of file Projectile.cs.

91610 {
91611 //IL_000a: Unknown result type (might be due to invalid IL or missing references)
91612 //IL_0018: Unknown result type (might be due to invalid IL or missing references)
91613 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
91614 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
91615 //IL_005a: Unknown result type (might be due to invalid IL or missing references)
91616 //IL_0074: Unknown result type (might be due to invalid IL or missing references)
91617 //IL_008b: Unknown result type (might be due to invalid IL or missing references)
91618 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
91619 //IL_00a6: Unknown result type (might be due to invalid IL or missing references)
91620 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
91621 //IL_00c1: Unknown result type (might be due to invalid IL or missing references)
91622 //IL_00c7: Unknown result type (might be due to invalid IL or missing references)
91623 //IL_00c9: Unknown result type (might be due to invalid IL or missing references)
91624 //IL_00ce: Unknown result type (might be due to invalid IL or missing references)
91625 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
91626 //IL_00ea: Unknown result type (might be due to invalid IL or missing references)
91627 //IL_00ef: Unknown result type (might be due to invalid IL or missing references)
91628 //IL_0179: Unknown result type (might be due to invalid IL or missing references)
91629 //IL_017e: Unknown result type (might be due to invalid IL or missing references)
91630 //IL_01a2: Unknown result type (might be due to invalid IL or missing references)
91631 //IL_01b9: Unknown result type (might be due to invalid IL or missing references)
91632 //IL_01cf: Unknown result type (might be due to invalid IL or missing references)
91633 //IL_01d4: Unknown result type (might be due to invalid IL or missing references)
91634 //IL_01e1: Unknown result type (might be due to invalid IL or missing references)
91635 //IL_01ef: Unknown result type (might be due to invalid IL or missing references)
91636 //IL_01f5: Unknown result type (might be due to invalid IL or missing references)
91637 //IL_01f7: Unknown result type (might be due to invalid IL or missing references)
91638 //IL_01fc: Unknown result type (might be due to invalid IL or missing references)
91639 //IL_01fd: Unknown result type (might be due to invalid IL or missing references)
91640 //IL_0218: Unknown result type (might be due to invalid IL or missing references)
91641 //IL_021d: Unknown result type (might be due to invalid IL or missing references)
91642 //IL_022b: Unknown result type (might be due to invalid IL or missing references)
91643 //IL_0240: Unknown result type (might be due to invalid IL or missing references)
91644 //IL_0245: Unknown result type (might be due to invalid IL or missing references)
91645 //IL_02da: Unknown result type (might be due to invalid IL or missing references)
91646 //IL_02df: Unknown result type (might be due to invalid IL or missing references)
91647 Vector2 spinningpoint = Utils.RotatedByRandom(new Vector2(0f, -3f), 3.1415927410125732);
91648 float num = Main.rand.Next(7, 13);
91649 Vector2 vector = default(Vector2);
91650 ((Vector2)(ref vector))._002Ector(2.1f, 2f);
91651 Color newColor = Main.hslToRgb(ai[0], 1f, 0.5f);
91652 ((Color)(ref newColor)).A = byte.MaxValue;
91653 for (float num2 = 0f; num2 < num; num2 += 1f)
91654 {
91655 int num3 = Dust.NewDust(base.Center, 0, 0, 267, 0f, 0f, 0, newColor);
91656 Main.dust[num3].position = base.Center;
91657 Main.dust[num3].velocity = spinningpoint.RotatedBy((float)Math.PI * 2f * num2 / num) * vector * (0.8f + Main.rand.NextFloat() * 0.4f);
91658 Main.dust[num3].noGravity = true;
91659 Main.dust[num3].scale = 2f;
91660 Main.dust[num3].fadeIn = Main.rand.NextFloat() * 2f;
91661 if (num3 != 6000)
91662 {
91663 Dust dust = Dust.CloneDust(num3);
91664 dust.scale /= 2f;
91665 dust.fadeIn /= 2f;
91666 dust.color = new Color(255, 255, 255, 255);
91667 }
91668 }
91669 for (float num4 = 0f; num4 < num; num4 += 1f)
91670 {
91671 int num5 = Dust.NewDust(base.Center, 0, 0, 267, 0f, 0f, 0, newColor);
91672 Main.dust[num5].position = base.Center;
91673 Main.dust[num5].velocity = spinningpoint.RotatedBy((float)Math.PI * 2f * num4 / num) * vector * (0.8f + Main.rand.NextFloat() * 0.4f);
91674 Dust obj = Main.dust[num5];
91675 obj.velocity *= Main.rand.NextFloat() * 0.8f;
91676 Main.dust[num5].noGravity = true;
91677 Main.dust[num5].scale = Main.rand.NextFloat() * 1f;
91678 Main.dust[num5].fadeIn = Main.rand.NextFloat() * 2f;
91679 if (num5 != 6000)
91680 {
91681 Dust dust2 = Dust.CloneDust(num5);
91682 dust2.scale /= 2f;
91683 dust2.fadeIn /= 2f;
91684 dust2.color = new Color(255, 255, 255, 255);
91685 }
91686 }
91687 }
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....

References Terraria.Dust.CloneDust(), Terraria.Main.dust, Terraria.Main.hslToRgb(), Terraria.Dust.NewDust(), Terraria.Main.rand, and Terraria.Utils.RotatedByRandom().

+ Here is the call graph for this function: