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

◆ AI_136_BetsyBreath()

void Terraria.Projectile.AI_136_BetsyBreath ( )
inlineprivate

Definition at line 75718 of file Projectile.cs.

75719 {
75720 //IL_003c: Unknown result type (might be due to invalid IL or missing references)
75721 //IL_0055: Unknown result type (might be due to invalid IL or missing references)
75722 //IL_0063: Unknown result type (might be due to invalid IL or missing references)
75723 //IL_0069: Unknown result type (might be due to invalid IL or missing references)
75724 //IL_006b: Unknown result type (might be due to invalid IL or missing references)
75725 //IL_0070: Unknown result type (might be due to invalid IL or missing references)
75726 //IL_0075: Unknown result type (might be due to invalid IL or missing references)
75727 //IL_0077: Unknown result type (might be due to invalid IL or missing references)
75728 //IL_0080: Unknown result type (might be due to invalid IL or missing references)
75729 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
75730 //IL_00a3: Unknown result type (might be due to invalid IL or missing references)
75731 //IL_00a8: Unknown result type (might be due to invalid IL or missing references)
75732 //IL_00f1: Unknown result type (might be due to invalid IL or missing references)
75733 //IL_00fc: Unknown result type (might be due to invalid IL or missing references)
75734 //IL_0106: Unknown result type (might be due to invalid IL or missing references)
75735 //IL_010d: Unknown result type (might be due to invalid IL or missing references)
75736 //IL_0112: Unknown result type (might be due to invalid IL or missing references)
75737 //IL_0118: Unknown result type (might be due to invalid IL or missing references)
75738 //IL_0123: Unknown result type (might be due to invalid IL or missing references)
75739 //IL_012d: Unknown result type (might be due to invalid IL or missing references)
75740 //IL_0133: Unknown result type (might be due to invalid IL or missing references)
75741 //IL_0138: Unknown result type (might be due to invalid IL or missing references)
75742 //IL_0155: Unknown result type (might be due to invalid IL or missing references)
75743 //IL_0160: Unknown result type (might be due to invalid IL or missing references)
75744 //IL_0170: Unknown result type (might be due to invalid IL or missing references)
75745 //IL_0176: Unknown result type (might be due to invalid IL or missing references)
75746 //IL_0178: Unknown result type (might be due to invalid IL or missing references)
75747 //IL_0182: Unknown result type (might be due to invalid IL or missing references)
75748 //IL_0189: Unknown result type (might be due to invalid IL or missing references)
75749 //IL_018e: Unknown result type (might be due to invalid IL or missing references)
75750 //IL_0194: Unknown result type (might be due to invalid IL or missing references)
75751 //IL_019f: Unknown result type (might be due to invalid IL or missing references)
75752 //IL_01af: Unknown result type (might be due to invalid IL or missing references)
75753 //IL_01b5: Unknown result type (might be due to invalid IL or missing references)
75754 //IL_01b7: Unknown result type (might be due to invalid IL or missing references)
75755 //IL_01c1: Unknown result type (might be due to invalid IL or missing references)
75756 //IL_01c7: Unknown result type (might be due to invalid IL or missing references)
75757 //IL_01cc: Unknown result type (might be due to invalid IL or missing references)
75758 //IL_01e9: Unknown result type (might be due to invalid IL or missing references)
75759 //IL_01f4: Unknown result type (might be due to invalid IL or missing references)
75760 //IL_0204: Unknown result type (might be due to invalid IL or missing references)
75761 //IL_020a: Unknown result type (might be due to invalid IL or missing references)
75762 //IL_020c: Unknown result type (might be due to invalid IL or missing references)
75763 //IL_0216: Unknown result type (might be due to invalid IL or missing references)
75764 //IL_021d: Unknown result type (might be due to invalid IL or missing references)
75765 //IL_0222: Unknown result type (might be due to invalid IL or missing references)
75766 //IL_0228: Unknown result type (might be due to invalid IL or missing references)
75767 //IL_0233: Unknown result type (might be due to invalid IL or missing references)
75768 //IL_0243: Unknown result type (might be due to invalid IL or missing references)
75769 //IL_0249: Unknown result type (might be due to invalid IL or missing references)
75770 //IL_024b: Unknown result type (might be due to invalid IL or missing references)
75771 //IL_0255: Unknown result type (might be due to invalid IL or missing references)
75772 //IL_025b: Unknown result type (might be due to invalid IL or missing references)
75773 //IL_0260: Unknown result type (might be due to invalid IL or missing references)
75774 //IL_0398: Unknown result type (might be due to invalid IL or missing references)
75775 //IL_03a3: Unknown result type (might be due to invalid IL or missing references)
75776 //IL_03ad: Unknown result type (might be due to invalid IL or missing references)
75777 //IL_03b2: Unknown result type (might be due to invalid IL or missing references)
75778 //IL_03c6: Unknown result type (might be due to invalid IL or missing references)
75779 //IL_03cb: Unknown result type (might be due to invalid IL or missing references)
75780 //IL_03d0: Unknown result type (might be due to invalid IL or missing references)
75781 //IL_03ef: Unknown result type (might be due to invalid IL or missing references)
75782 //IL_03f9: Unknown result type (might be due to invalid IL or missing references)
75783 //IL_03fe: Unknown result type (might be due to invalid IL or missing references)
75784 //IL_0404: Unknown result type (might be due to invalid IL or missing references)
75785 //IL_040f: Unknown result type (might be due to invalid IL or missing references)
75786 //IL_0419: Unknown result type (might be due to invalid IL or missing references)
75787 //IL_041e: Unknown result type (might be due to invalid IL or missing references)
75788 //IL_0423: Unknown result type (might be due to invalid IL or missing references)
75789 //IL_0431: Unknown result type (might be due to invalid IL or missing references)
75790 //IL_0451: Unknown result type (might be due to invalid IL or missing references)
75791 //IL_0457: Unknown result type (might be due to invalid IL or missing references)
75792 //IL_0480: Unknown result type (might be due to invalid IL or missing references)
75793 //IL_0498: Unknown result type (might be due to invalid IL or missing references)
75794 //IL_049e: Unknown result type (might be due to invalid IL or missing references)
75795 //IL_04a0: Unknown result type (might be due to invalid IL or missing references)
75796 //IL_04bb: Unknown result type (might be due to invalid IL or missing references)
75797 //IL_04c5: Unknown result type (might be due to invalid IL or missing references)
75798 //IL_04ca: Unknown result type (might be due to invalid IL or missing references)
75799 //IL_04d1: Unknown result type (might be due to invalid IL or missing references)
75800 //IL_04d7: Unknown result type (might be due to invalid IL or missing references)
75801 //IL_04e1: Unknown result type (might be due to invalid IL or missing references)
75802 //IL_04e6: Unknown result type (might be due to invalid IL or missing references)
75803 //IL_04eb: Unknown result type (might be due to invalid IL or missing references)
75804 //IL_04f2: Unknown result type (might be due to invalid IL or missing references)
75805 //IL_04fc: Unknown result type (might be due to invalid IL or missing references)
75806 //IL_0501: Unknown result type (might be due to invalid IL or missing references)
75807 //IL_0522: Unknown result type (might be due to invalid IL or missing references)
75808 //IL_052d: Unknown result type (might be due to invalid IL or missing references)
75809 //IL_0537: Unknown result type (might be due to invalid IL or missing references)
75810 //IL_053e: Unknown result type (might be due to invalid IL or missing references)
75811 //IL_0543: Unknown result type (might be due to invalid IL or missing references)
75812 //IL_0549: Unknown result type (might be due to invalid IL or missing references)
75813 //IL_0554: Unknown result type (might be due to invalid IL or missing references)
75814 //IL_055e: Unknown result type (might be due to invalid IL or missing references)
75815 //IL_0564: Unknown result type (might be due to invalid IL or missing references)
75816 //IL_0569: Unknown result type (might be due to invalid IL or missing references)
75817 //IL_0570: Unknown result type (might be due to invalid IL or missing references)
75818 //IL_0575: Unknown result type (might be due to invalid IL or missing references)
75819 //IL_057b: Unknown result type (might be due to invalid IL or missing references)
75820 //IL_0586: Unknown result type (might be due to invalid IL or missing references)
75821 //IL_0596: Unknown result type (might be due to invalid IL or missing references)
75822 //IL_059c: Unknown result type (might be due to invalid IL or missing references)
75823 //IL_059e: Unknown result type (might be due to invalid IL or missing references)
75824 //IL_05b7: Unknown result type (might be due to invalid IL or missing references)
75825 //IL_05bc: Unknown result type (might be due to invalid IL or missing references)
75826 //IL_05c1: Unknown result type (might be due to invalid IL or missing references)
75827 //IL_029c: Unknown result type (might be due to invalid IL or missing references)
75828 //IL_02bb: Unknown result type (might be due to invalid IL or missing references)
75829 //IL_02c1: Unknown result type (might be due to invalid IL or missing references)
75830 //IL_02df: Unknown result type (might be due to invalid IL or missing references)
75831 //IL_02f7: Unknown result type (might be due to invalid IL or missing references)
75832 //IL_02fd: Unknown result type (might be due to invalid IL or missing references)
75833 //IL_02ff: Unknown result type (might be due to invalid IL or missing references)
75834 //IL_031a: Unknown result type (might be due to invalid IL or missing references)
75835 //IL_0324: Unknown result type (might be due to invalid IL or missing references)
75836 //IL_0329: Unknown result type (might be due to invalid IL or missing references)
75837 //IL_0330: Unknown result type (might be due to invalid IL or missing references)
75838 //IL_0336: Unknown result type (might be due to invalid IL or missing references)
75839 //IL_0340: Unknown result type (might be due to invalid IL or missing references)
75840 //IL_0345: Unknown result type (might be due to invalid IL or missing references)
75841 //IL_034a: Unknown result type (might be due to invalid IL or missing references)
75842 if (ai[1] < 0f || ai[1] > 200f)
75843 {
75844 Kill();
75845 return;
75846 }
75847 NPC nPC = Main.npc[(int)ai[1]];
75848 float num = -8f;
75849 Vector2 center = nPC.Center + Utils.RotatedBy(new Vector2((110f + num) * (float)nPC.spriteDirection, 30f), nPC.rotation);
75850 base.Center = center;
75851 rotation = nPC.DirectionTo(base.Center).ToRotation();
75852 DelegateMethods.v3_1 = new Vector3(1.2f, 1f, 0.3f);
75853 float num2 = ai[0] / 40f;
75854 if (num2 > 1f)
75855 {
75856 num2 = 1f;
75857 }
75858 float num3 = (ai[0] - 38f) / 40f;
75859 if (num3 < 0f)
75860 {
75861 num3 = 0f;
75862 }
75863 Utils.PlotTileLine(base.Center + rotation.ToRotationVector2() * 400f * num3, base.Center + rotation.ToRotationVector2() * 400f * num2, 16f, DelegateMethods.CastLight);
75864 Utils.PlotTileLine(base.Center + rotation.ToRotationVector2().RotatedBy(0.19634954631328583) * 400f * num3, base.Center + rotation.ToRotationVector2().RotatedBy(0.19634954631328583) * 400f * num2, 16f, DelegateMethods.CastLight);
75865 Utils.PlotTileLine(base.Center + rotation.ToRotationVector2().RotatedBy(-0.19634954631328583) * 400f * num3, base.Center + rotation.ToRotationVector2().RotatedBy(-0.19634954631328583) * 400f * num2, 16f, DelegateMethods.CastLight);
75866 if (num3 == 0f && num2 > 0.1f)
75867 {
75868 for (int i = 0; i < 3; i++)
75869 {
75870 Dust dust = Dust.NewDustDirect(position, width, height, 6);
75871 dust.fadeIn = 1.5f;
75872 dust.velocity = rotation.ToRotationVector2().RotatedBy(Main.rand.NextFloatDirection() * ((float)Math.PI / 12f)) * (0.5f + Main.rand.NextFloat() * 2.5f) * 15f;
75873 dust.velocity += nPC.velocity * 2f;
75874 dust.noLight = true;
75875 dust.noGravity = true;
75876 dust.alpha = 200;
75877 }
75878 }
75879 if (Main.rand.Next(5) == 0 && ai[0] >= 15f)
75880 {
75881 Gore gore = Gore.NewGoreDirect(base.Center + rotation.ToRotationVector2() * 300f - Utils.RandomVector2(Main.rand, -20f, 20f), Vector2.Zero, 61 + Main.rand.Next(3), 0.5f);
75882 gore.velocity *= 0.3f;
75883 gore.velocity += rotation.ToRotationVector2() * 4f;
75884 }
75885 for (int j = 0; j < 1; j++)
75886 {
75887 Dust dust2 = Dust.NewDustDirect(position, width, height, 31);
75888 dust2.fadeIn = 1.5f;
75889 dust2.scale = 0.4f;
75890 dust2.velocity = rotation.ToRotationVector2().RotatedBy(Main.rand.NextFloatDirection() * ((float)Math.PI / 12f)) * (0.5f + Main.rand.NextFloat() * 2.5f) * 15f;
75891 dust2.velocity += nPC.velocity * 2f;
75892 dust2.velocity *= 0.3f;
75893 dust2.noLight = true;
75894 dust2.noGravity = true;
75895 float num4 = Main.rand.NextFloat();
75896 dust2.position = Vector2.Lerp(base.Center + rotation.ToRotationVector2() * 400f * num3, base.Center + rotation.ToRotationVector2() * 400f * num2, num4);
75897 dust2.position += rotation.ToRotationVector2().RotatedBy(1.5707963705062866) * (20f + 100f * (num4 - 0.5f));
75898 }
75899 frameCounter++;
75900 ai[0] += 1f;
75901 if (ai[0] >= 78f)
75902 {
75903 Kill();
75904 }
75905 }
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
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...
int frameCounter
Used as a timer to decide when to change F:Terraria.Projectile.frame. Defaults to 0.

References Terraria.DelegateMethods.CastLight(), Terraria.Dust.NewDustDirect(), Terraria.Gore.NewGoreDirect(), Terraria.Main.npc, Terraria.Utils.PlotTileLine(), Terraria.Main.rand, Terraria.Utils.RandomVector2(), and Terraria.Utils.RotatedBy().

+ Here is the call graph for this function: