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

◆ AI_157_SharpTears()

void Terraria.Projectile.AI_157_SharpTears ( )
inlineprivate

Definition at line 53896 of file Projectile.cs.

53897 {
53898 //IL_00bb: Unknown result type (might be due to invalid IL or missing references)
53899 //IL_00e5: Unknown result type (might be due to invalid IL or missing references)
53900 //IL_00f9: Unknown result type (might be due to invalid IL or missing references)
53901 //IL_00fe: Unknown result type (might be due to invalid IL or missing references)
53902 //IL_0105: Unknown result type (might be due to invalid IL or missing references)
53903 //IL_010b: Unknown result type (might be due to invalid IL or missing references)
53904 //IL_0129: Unknown result type (might be due to invalid IL or missing references)
53905 //IL_0136: Unknown result type (might be due to invalid IL or missing references)
53906 //IL_013c: Unknown result type (might be due to invalid IL or missing references)
53907 //IL_014a: Unknown result type (might be due to invalid IL or missing references)
53908 //IL_015e: Unknown result type (might be due to invalid IL or missing references)
53909 //IL_0163: Unknown result type (might be due to invalid IL or missing references)
53910 //IL_0168: Unknown result type (might be due to invalid IL or missing references)
53911 //IL_02e8: Unknown result type (might be due to invalid IL or missing references)
53912 //IL_02fc: Unknown result type (might be due to invalid IL or missing references)
53913 //IL_0301: Unknown result type (might be due to invalid IL or missing references)
53914 //IL_0308: Unknown result type (might be due to invalid IL or missing references)
53915 //IL_030e: Unknown result type (might be due to invalid IL or missing references)
53916 //IL_032c: Unknown result type (might be due to invalid IL or missing references)
53917 //IL_0339: Unknown result type (might be due to invalid IL or missing references)
53918 //IL_033f: Unknown result type (might be due to invalid IL or missing references)
53919 //IL_034d: Unknown result type (might be due to invalid IL or missing references)
53920 //IL_0361: Unknown result type (might be due to invalid IL or missing references)
53921 //IL_0366: Unknown result type (might be due to invalid IL or missing references)
53922 //IL_036b: Unknown result type (might be due to invalid IL or missing references)
53923 //IL_0372: Unknown result type (might be due to invalid IL or missing references)
53924 //IL_037c: Unknown result type (might be due to invalid IL or missing references)
53925 //IL_0381: Unknown result type (might be due to invalid IL or missing references)
53926 //IL_04b2: Unknown result type (might be due to invalid IL or missing references)
53927 //IL_04c6: Unknown result type (might be due to invalid IL or missing references)
53928 //IL_04d1: Unknown result type (might be due to invalid IL or missing references)
53929 //IL_03d2: Unknown result type (might be due to invalid IL or missing references)
53930 //IL_03e6: Unknown result type (might be due to invalid IL or missing references)
53931 //IL_03eb: Unknown result type (might be due to invalid IL or missing references)
53932 //IL_03f2: Unknown result type (might be due to invalid IL or missing references)
53933 //IL_03f8: Unknown result type (might be due to invalid IL or missing references)
53934 //IL_0416: Unknown result type (might be due to invalid IL or missing references)
53935 //IL_0423: Unknown result type (might be due to invalid IL or missing references)
53936 //IL_0429: Unknown result type (might be due to invalid IL or missing references)
53937 //IL_0437: Unknown result type (might be due to invalid IL or missing references)
53938 //IL_044b: Unknown result type (might be due to invalid IL or missing references)
53939 //IL_0450: Unknown result type (might be due to invalid IL or missing references)
53940 //IL_0455: Unknown result type (might be due to invalid IL or missing references)
53941 //IL_045c: Unknown result type (might be due to invalid IL or missing references)
53942 //IL_0466: Unknown result type (might be due to invalid IL or missing references)
53943 //IL_046b: Unknown result type (might be due to invalid IL or missing references)
53944 //IL_019f: Unknown result type (might be due to invalid IL or missing references)
53945 //IL_01b3: Unknown result type (might be due to invalid IL or missing references)
53946 //IL_01b8: Unknown result type (might be due to invalid IL or missing references)
53947 //IL_01cd: Unknown result type (might be due to invalid IL or missing references)
53948 //IL_01d3: Unknown result type (might be due to invalid IL or missing references)
53949 //IL_01d9: Unknown result type (might be due to invalid IL or missing references)
53950 //IL_01f7: Unknown result type (might be due to invalid IL or missing references)
53951 //IL_01fc: Unknown result type (might be due to invalid IL or missing references)
53952 //IL_0209: Unknown result type (might be due to invalid IL or missing references)
53953 //IL_020f: Unknown result type (might be due to invalid IL or missing references)
53954 //IL_021d: Unknown result type (might be due to invalid IL or missing references)
53955 //IL_0231: Unknown result type (might be due to invalid IL or missing references)
53956 //IL_0236: Unknown result type (might be due to invalid IL or missing references)
53957 //IL_023b: Unknown result type (might be due to invalid IL or missing references)
53958 //IL_02a0: Unknown result type (might be due to invalid IL or missing references)
53959 //IL_0287: Unknown result type (might be due to invalid IL or missing references)
53960 int num = 5;
53961 float num2 = 1f;
53962 int num3 = 30;
53963 int num4 = 30;
53964 int num5 = 2;
53965 int num6 = 2;
53966 int num7 = 20;
53967 int num8 = 30;
53968 int num9 = 35;
53969 int maxValue = 6;
53970 if (type == 961)
53971 {
53972 num = 16;
53973 num2 = 0.75f;
53974 num3 = 5;
53975 num4 = 5;
53976 num5 = 0;
53977 num6 = 0;
53978 num7 = 10;
53979 num8 = 10;
53980 num9 = 20;
53981 maxValue = 5;
53982 }
53983 bool flag = ai[0] < (float)num7;
53984 bool flag2 = ai[0] >= (float)num8;
53985 bool flag3 = ai[0] >= (float)num9;
53986 ai[0] += 1f;
53987 if (localAI[0] == 0f)
53988 {
53989 localAI[0] = 1f;
53990 rotation = velocity.ToRotation();
53991 frame = Main.rand.Next(maxValue);
53992 for (int i = 0; i < num3; i++)
53993 {
53994 Dust dust = Dust.NewDustPerfect(base.Center + Main.rand.NextVector2Circular(24f, 24f), num, velocity * num2 * MathHelper.Lerp(0.2f, 0.7f, Main.rand.NextFloat()));
53995 dust.velocity += Main.rand.NextVector2Circular(0.5f, 0.5f);
53996 dust.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
53997 }
53998 for (int j = 0; j < num4; j++)
53999 {
54000 Dust dust2 = Dust.NewDustPerfect(base.Center + Main.rand.NextVector2Circular(24f, 24f), num, Main.rand.NextVector2Circular(2f, 2f) + velocity * num2 * MathHelper.Lerp(0.2f, 0.5f, Main.rand.NextFloat()));
54001 dust2.velocity += Main.rand.NextVector2Circular(0.5f, 0.5f);
54002 dust2.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
54003 dust2.fadeIn = 1f;
54004 }
54005 if (type == 961)
54006 {
54008 }
54009 else
54010 {
54012 }
54013 }
54014 if (flag)
54015 {
54016 Opacity += 0.1f;
54017 scale = Opacity * ai[1];
54018 for (int k = 0; k < num5; k++)
54019 {
54020 Dust dust3 = Dust.NewDustPerfect(base.Center + Main.rand.NextVector2Circular(16f, 16f), num, velocity * num2 * MathHelper.Lerp(0.2f, 0.5f, Main.rand.NextFloat()));
54021 dust3.velocity += Main.rand.NextVector2Circular(0.5f, 0.5f);
54022 dust3.velocity *= 0.5f;
54023 dust3.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
54024 }
54025 }
54026 if (flag2)
54027 {
54028 Opacity -= 0.2f;
54029 for (int l = 0; l < num6; l++)
54030 {
54031 Dust dust4 = Dust.NewDustPerfect(base.Center + Main.rand.NextVector2Circular(16f, 16f), num, velocity * num2 * MathHelper.Lerp(0.2f, 0.5f, Main.rand.NextFloat()));
54032 dust4.velocity += Main.rand.NextVector2Circular(0.5f, 0.5f);
54033 dust4.velocity *= 0.5f;
54034 dust4.scale = 0.8f + Main.rand.NextFloat() * 0.5f;
54035 }
54036 }
54037 if (flag3)
54038 {
54039 Kill();
54040 }
54041 if (type == 756)
54042 {
54043 Lighting.AddLight(base.Center, new Vector3(0.5f, 0.1f, 0.1f) * scale);
54044 }
54045 }
static SlotId PlaySound(in SoundStyle? style, Vector2? position=null, SoundUpdateCallback? updateCallback=null)
Attempts to play a sound style with the provided sound style (if it's not null), and returns a valid ...
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33
static readonly SoundStyle Item60
Definition SoundID.cs:797
static readonly SoundStyle DeerclopsIceAttack
Definition SoundID.cs:237
float[] ai
An array with 3 slots used for any sort of data storage, which is occasionally synced to the server....
float[] localAI
Acts like F:Terraria.Projectile.ai, but does not sync to the server. Many vanilla T:Terraria....
int frame
The frame number in the spritesheet that this projectile will be drawn with. Assign in M:Terraria....
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...
float rotation
Rotation of the projectile. Radians not Degrees. Use T:Microsoft.Xna.Framework.MathHelper if you want...
float scale
Scales how large the projectile will be drawn. Will also affect the hitbox (F:Terraria....

References Terraria.Lighting.AddLight(), Terraria.ID.SoundID.DeerclopsIceAttack, Terraria.ID.SoundID.Item60, Terraria.Dust.NewDustPerfect(), Terraria.Audio.SoundEngine.PlaySound(), and Terraria.Main.rand.

+ Here is the call graph for this function: