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

◆ CreateImpactExplosion2_SleepyOctopod()

void Terraria.Projectile.CreateImpactExplosion2_SleepyOctopod ( Vector2 explosionOrigin,
bool causedShockwaves )
inlineprivate

Definition at line 76669 of file Projectile.cs.

76670 {
76671 //IL_0042: Unknown result type (might be due to invalid IL or missing references)
76672 //IL_0053: Unknown result type (might be due to invalid IL or missing references)
76673 //IL_0059: Unknown result type (might be due to invalid IL or missing references)
76674 //IL_005b: Unknown result type (might be due to invalid IL or missing references)
76675 //IL_0060: Unknown result type (might be due to invalid IL or missing references)
76676 //IL_0061: Unknown result type (might be due to invalid IL or missing references)
76677 //IL_0066: Unknown result type (might be due to invalid IL or missing references)
76678 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
76679 //IL_0089: Unknown result type (might be due to invalid IL or missing references)
76680 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
76681 //IL_00b3: Unknown result type (might be due to invalid IL or missing references)
76682 //IL_00b4: Unknown result type (might be due to invalid IL or missing references)
76683 //IL_00bb: Unknown result type (might be due to invalid IL or missing references)
76684 //IL_00bc: Unknown result type (might be due to invalid IL or missing references)
76685 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
76686 //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
76687 //IL_013c: Unknown result type (might be due to invalid IL or missing references)
76688 //IL_014e: Unknown result type (might be due to invalid IL or missing references)
76689 //IL_0154: Unknown result type (might be due to invalid IL or missing references)
76690 //IL_0156: Unknown result type (might be due to invalid IL or missing references)
76691 //IL_015b: Unknown result type (might be due to invalid IL or missing references)
76692 //IL_015c: Unknown result type (might be due to invalid IL or missing references)
76693 //IL_0161: Unknown result type (might be due to invalid IL or missing references)
76694 //IL_0164: Unknown result type (might be due to invalid IL or missing references)
76695 //IL_0184: Unknown result type (might be due to invalid IL or missing references)
76696 //IL_018a: Unknown result type (might be due to invalid IL or missing references)
76697 //IL_019f: Unknown result type (might be due to invalid IL or missing references)
76698 //IL_01a0: Unknown result type (might be due to invalid IL or missing references)
76699 //IL_01a6: Unknown result type (might be due to invalid IL or missing references)
76700 //IL_01a7: Unknown result type (might be due to invalid IL or missing references)
76701 //IL_01a9: Unknown result type (might be due to invalid IL or missing references)
76702 //IL_01ae: Unknown result type (might be due to invalid IL or missing references)
76703 Vector2 spinningpoint = default(Vector2);
76704 ((Vector2)(ref spinningpoint))._002Ector(7f, 0f);
76705 Vector2 vector = default(Vector2);
76706 ((Vector2)(ref vector))._002Ector(1f, 0.7f);
76707 Color color = default(Color);
76708 ((Color)(ref color))._002Ector(20, 255, 100, 200);
76709 for (float num = 0f; num < 25f; num += 1f)
76710 {
76711 Vector2 vector2 = spinningpoint.RotatedBy(num * ((float)Math.PI * 2f) / 25f) * vector;
76712 Dust dust = Dust.NewDustDirect(position, width, height, 55);
76713 dust.alpha = 0;
76714 if (!causedShockwaves)
76715 {
76716 dust.alpha = 50;
76717 }
76718 dust.color = color;
76719 dust.position = explosionOrigin + vector2;
76720 dust.velocity.Y -= 3f;
76721 dust.velocity.X *= 0.5f;
76722 dust.fadeIn = 0.5f + Main.rand.NextFloat() * 0.5f;
76723 dust.noLight = true;
76724 }
76725 if (!causedShockwaves)
76726 {
76727 for (float num2 = 0f; num2 < 25f; num2 += 1f)
76728 {
76729 Vector2 vector3 = spinningpoint.RotatedBy(num2 * ((float)Math.PI * 2f) / 25f) * vector;
76730 Dust dust2 = Dust.NewDustDirect(position, width, height, 55);
76731 dust2.alpha = 100;
76732 dust2.color = color;
76733 dust2.position = explosionOrigin + vector3;
76734 dust2.velocity.Y -= 5f;
76735 dust2.velocity.X *= 0.8f;
76736 dust2.fadeIn = 0.5f + Main.rand.NextFloat() * 0.5f;
76737 dust2.noLight = true;
76738 }
76739 }
76740 }
Vector2 position
The position of this Entity in world coordinates.
Definition Entity.cs:28
int width
The width of this Entity's hitbox, in pixels.
Definition Entity.cs:46
int height
The height of this Entity's hitbox, in pixels.
Definition Entity.cs:51

References Terraria.Dust.NewDustDirect(), and Terraria.Main.rand.

+ Here is the call graph for this function: