terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches

◆ AI_009_MagicMissiles_Old()

void Terraria.Projectile.AI_009_MagicMissiles_Old ( )
inlineprivate

Definition at line 2733 of file Projectile.cs.

2734 {
2735 if (!true)
2736 {
2737 }
2738 int myPlayer = Main.myPlayer;
2739 if (this.owner == 0)
2740 {
2741 }
2742 Item item;
2743 int shoot = item.shoot;
2744 int num = this.type;
2745 int width = this.width;
2746 int height = this.height;
2747 float x = this.position.X;
2748 float y = this.position.Y;
2749 if (shoot == 0)
2750 {
2751 }
2752 Vector2 mouseWorld = Main.MouseWorld;
2753 int num2 = this.type;
2754 float x2 = this.velocity.X;
2755 float y2 = this.velocity.Y;
2756 if (num2 == 0)
2757 {
2758 }
2759 this.velocity.X = x;
2760 this.velocity.Y = y;
2761 Vector2 vector;
2762 float num3 = vector.Length();
2763 vector.Normalize();
2764 float x3 = this.velocity.X;
2765 float y3 = this.velocity.Y;
2766 this.velocity.X = x;
2767 this.velocity.Y = y;
2768 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460

References Terraria.Entity.height, System.item, j__TPar, Microsoft.Xna.Framework.Vector2.Length(), Terraria.Main.MouseWorld, Terraria.Main.myPlayer, Microsoft.Xna.Framework.Vector2.Normalize(), Terraria.Projectile.owner, Terraria.Entity.position, Terraria.Item.shoot, Terraria.Projectile.type, Terraria.Entity.velocity, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.Projectile.AI_009_MagicMissiles().