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

◆ NinjaDodge()

void Terraria.Player.NinjaDodge ( )
inline

Definition at line 36862 of file Player.cs.

36863 {
36864 //IL_0031: Unknown result type (might be due to invalid IL or missing references)
36865 //IL_0052: Unknown result type (might be due to invalid IL or missing references)
36866 //IL_0058: Unknown result type (might be due to invalid IL or missing references)
36867 //IL_00b4: Unknown result type (might be due to invalid IL or missing references)
36868 //IL_00be: Unknown result type (might be due to invalid IL or missing references)
36869 //IL_00c3: Unknown result type (might be due to invalid IL or missing references)
36870 //IL_0199: Unknown result type (might be due to invalid IL or missing references)
36871 //IL_01a0: Unknown result type (might be due to invalid IL or missing references)
36872 //IL_01a6: Unknown result type (might be due to invalid IL or missing references)
36873 //IL_0226: Unknown result type (might be due to invalid IL or missing references)
36874 //IL_0230: Unknown result type (might be due to invalid IL or missing references)
36875 //IL_0235: Unknown result type (might be due to invalid IL or missing references)
36876 //IL_0270: Unknown result type (might be due to invalid IL or missing references)
36877 //IL_0277: Unknown result type (might be due to invalid IL or missing references)
36878 //IL_027d: Unknown result type (might be due to invalid IL or missing references)
36879 //IL_0309: Unknown result type (might be due to invalid IL or missing references)
36880 //IL_0313: Unknown result type (might be due to invalid IL or missing references)
36881 //IL_0318: Unknown result type (might be due to invalid IL or missing references)
36882 //IL_0353: Unknown result type (might be due to invalid IL or missing references)
36883 //IL_035a: Unknown result type (might be due to invalid IL or missing references)
36884 //IL_0360: Unknown result type (might be due to invalid IL or missing references)
36885 //IL_03ec: Unknown result type (might be due to invalid IL or missing references)
36886 //IL_03f6: Unknown result type (might be due to invalid IL or missing references)
36887 //IL_03fb: Unknown result type (might be due to invalid IL or missing references)
36888 //IL_0436: Unknown result type (might be due to invalid IL or missing references)
36889 //IL_043d: Unknown result type (might be due to invalid IL or missing references)
36890 //IL_0443: Unknown result type (might be due to invalid IL or missing references)
36891 //IL_04cf: Unknown result type (might be due to invalid IL or missing references)
36892 //IL_04d9: Unknown result type (might be due to invalid IL or missing references)
36893 //IL_04de: Unknown result type (might be due to invalid IL or missing references)
36894 //IL_0519: Unknown result type (might be due to invalid IL or missing references)
36895 //IL_0520: Unknown result type (might be due to invalid IL or missing references)
36896 //IL_0526: Unknown result type (might be due to invalid IL or missing references)
36897 //IL_05b2: Unknown result type (might be due to invalid IL or missing references)
36898 //IL_05bc: Unknown result type (might be due to invalid IL or missing references)
36899 //IL_05c1: Unknown result type (might be due to invalid IL or missing references)
36901 for (int i = 0; i < 100; i++)
36902 {
36903 int num = Dust.NewDust(new Vector2(position.X, position.Y), width, height, 31, 0f, 0f, 100, default(Color), 2f);
36904 Main.dust[num].position.X += Main.rand.Next(-20, 21);
36905 Main.dust[num].position.Y += Main.rand.Next(-20, 21);
36906 Dust obj = Main.dust[num];
36907 obj.velocity *= 0.4f;
36908 Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
36909 Main.dust[num].shader = GameShaders.Armor.GetSecondaryShader(cWaist, this);
36910 if (Main.rand.Next(2) == 0)
36911 {
36912 Main.dust[num].scale *= 1f + (float)Main.rand.Next(40) * 0.01f;
36913 Main.dust[num].noGravity = true;
36914 }
36915 }
36916 int num2 = Gore.NewGore(new Vector2(position.X + (float)(width / 2) - 24f, position.Y + (float)(height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64));
36917 Main.gore[num2].scale = 1.5f;
36918 Main.gore[num2].velocity.X = (float)Main.rand.Next(-50, 51) * 0.01f;
36919 Main.gore[num2].velocity.Y = (float)Main.rand.Next(-50, 51) * 0.01f;
36920 Gore obj2 = Main.gore[num2];
36921 obj2.velocity *= 0.4f;
36922 num2 = Gore.NewGore(new Vector2(position.X + (float)(width / 2) - 24f, position.Y + (float)(height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64));
36923 Main.gore[num2].scale = 1.5f;
36924 Main.gore[num2].velocity.X = 1.5f + (float)Main.rand.Next(-50, 51) * 0.01f;
36925 Main.gore[num2].velocity.Y = 1.5f + (float)Main.rand.Next(-50, 51) * 0.01f;
36926 Gore obj3 = Main.gore[num2];
36927 obj3.velocity *= 0.4f;
36928 num2 = Gore.NewGore(new Vector2(position.X + (float)(width / 2) - 24f, position.Y + (float)(height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64));
36929 Main.gore[num2].scale = 1.5f;
36930 Main.gore[num2].velocity.X = -1.5f - (float)Main.rand.Next(-50, 51) * 0.01f;
36931 Main.gore[num2].velocity.Y = 1.5f + (float)Main.rand.Next(-50, 51) * 0.01f;
36932 Gore obj4 = Main.gore[num2];
36933 obj4.velocity *= 0.4f;
36934 num2 = Gore.NewGore(new Vector2(position.X + (float)(width / 2) - 24f, position.Y + (float)(height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64));
36935 Main.gore[num2].scale = 1.5f;
36936 Main.gore[num2].velocity.X = 1.5f + (float)Main.rand.Next(-50, 51) * 0.01f;
36937 Main.gore[num2].velocity.Y = -1.5f - (float)Main.rand.Next(-50, 51) * 0.01f;
36938 Gore obj5 = Main.gore[num2];
36939 obj5.velocity *= 0.4f;
36940 num2 = Gore.NewGore(new Vector2(position.X + (float)(width / 2) - 24f, position.Y + (float)(height / 2) - 24f), default(Vector2), Main.rand.Next(61, 64));
36941 Main.gore[num2].scale = 1.5f;
36942 Main.gore[num2].velocity.X = -1.5f - (float)Main.rand.Next(-50, 51) * 0.01f;
36943 Main.gore[num2].velocity.Y = -1.5f - (float)Main.rand.Next(-50, 51) * 0.01f;
36944 Gore obj6 = Main.gore[num2];
36945 obj6.velocity *= 0.4f;
36946 if (whoAmI == Main.myPlayer)
36947 {
36948 NetMessage.SendData(62, -1, -1, null, whoAmI, 1f);
36949 }
36950 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
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
static ArmorShaderDataSet Armor
Definition GameShaders.cs:7
void SetImmuneTimeForAllTypes(int time)
Definition Player.cs:36818

References Terraria.Graphics.Shaders.GameShaders.Armor, Terraria.Player.cWaist, Terraria.Main.dust, Terraria.Main.gore, Terraria.Entity.height, Terraria.Player.longInvince, Terraria.Main.myPlayer, Terraria.Dust.NewDust(), Terraria.Gore.NewGore(), Terraria.Entity.position, Terraria.Main.rand, Terraria.NetMessage.SendData(), Terraria.Player.SetImmuneTimeForAllTypes(), Terraria.Entity.whoAmI, and Terraria.Entity.width.

Referenced by Terraria.Player.Hurt().

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