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

◆ AI_155_SpawnRopeIn()

void Terraria.Projectile.AI_155_SpawnRopeIn ( int x,
int y )
inlineprivate

Definition at line 54968 of file Projectile.cs.

54969 {
54970 //IL_0025: Unknown result type (might be due to invalid IL or missing references)
54971 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
54972 //IL_0054: Unknown result type (might be due to invalid IL or missing references)
54973 //IL_0059: Unknown result type (might be due to invalid IL or missing references)
54974 //IL_008b: Unknown result type (might be due to invalid IL or missing references)
54975 //IL_0096: Unknown result type (might be due to invalid IL or missing references)
54976 //IL_009b: Unknown result type (might be due to invalid IL or missing references)
54977 //IL_00a0: Unknown result type (might be due to invalid IL or missing references)
54978 //IL_010a: Unknown result type (might be due to invalid IL or missing references)
54979 //IL_0110: Unknown result type (might be due to invalid IL or missing references)
54980 //IL_0115: Unknown result type (might be due to invalid IL or missing references)
54981 //IL_012c: Unknown result type (might be due to invalid IL or missing references)
54982 //IL_013d: Unknown result type (might be due to invalid IL or missing references)
54983 //IL_0147: Unknown result type (might be due to invalid IL or missing references)
54984 //IL_014c: Unknown result type (might be due to invalid IL or missing references)
54985 //IL_00c4: Unknown result type (might be due to invalid IL or missing references)
54986 //IL_00ca: Unknown result type (might be due to invalid IL or missing references)
54987 //IL_00cf: Unknown result type (might be due to invalid IL or missing references)
54988 //IL_00e6: Unknown result type (might be due to invalid IL or missing references)
54989 //IL_00f6: Unknown result type (might be due to invalid IL or missing references)
54990 //IL_0100: Unknown result type (might be due to invalid IL or missing references)
54991 //IL_0105: Unknown result type (might be due to invalid IL or missing references)
54992 Vector2 vector = default(Vector2);
54993 ((Vector2)(ref vector))._002Ector((float)(x * 16 + 8), (float)(y * 16 + 8));
54994 if (Main.rand.Next(4) != 0)
54995 {
54996 Gore gore = Gore.NewGoreDirect(vector, Vector2.Zero, Main.rand.Next(61, 64));
54997 gore.velocity = Main.rand.NextVector2Circular(1.5f, 0.8f);
54998 gore.velocity.X += 0.1f * (float)((gore.velocity.X > 0f) ? 1 : (-1));
54999 gore.position = vector - new Vector2(16f, 16f);
55000 gore.alpha = 170;
55001 }
55002 for (int i = 0; i < 5; i++)
55003 {
55004 if (Main.rand.Next(8) == 0)
55005 {
55006 Dust dust = Dust.NewDustDirect(vector + new Vector2(-8f), 16, 16, 31, 0f, 0f, 100, Color.Transparent);
55007 dust.velocity *= 0.4f;
55008 }
55009 Dust dust2 = Dust.NewDustDirect(vector + new Vector2(-8f), 16, 16, 27, 0f, 0f, 100, Color.Transparent, 1.7f);
55010 dust2.velocity *= 2f;
55011 dust2.noGravity = true;
55012 }
55013 }

References Terraria.Dust.NewDustDirect(), Terraria.Gore.NewGoreDirect(), Terraria.Main.rand, and Terraria.Gore.velocity.

+ Here is the call graph for this function: