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_113_WindyBalloon()

void Terraria.NPC.AI_113_WindyBalloon ( )
inlineprivate

Definition at line 2821 of file NPC.cs.

2822 {
2823 if (this.localAI == null)
2824 {
2825 }
2826 bool logicHost = Main.LogicHost;
2827 int num = 1;
2828 this.TargetClosest(num != 0);
2829 float[] array = this.localAI;
2830 float[] array2 = this.ai;
2831 if (array == null)
2832 {
2833 }
2835 float x = this.position.X;
2836 float y = this.position.Y;
2837 if (array == null)
2838 {
2839 }
2840 int num2 = 32640;
2841 if (num2 != 0)
2842 {
2843 int num3;
2844 if (num3 != 0)
2845 {
2846 if (num2 != 0)
2847 {
2848 int num4;
2849 int num5;
2850 if (num4 != 0 && num5 == 0)
2851 {
2852 return;
2853 }
2854 }
2855 else
2856 {
2857 int num4;
2858 while (num4 != 0)
2859 {
2860 }
2861 }
2862 int num6 = 1;
2863 float[] array3 = this.ai;
2864 this.netUpdate = num6 != 0;
2865 Vector2 center = base.Center;
2866 float[] array4 = this.ai;
2867 if (array3 == null)
2868 {
2869 }
2870 float[] array5 = this.ai;
2871 float x2 = this.position.X;
2872 float y2 = this.position.Y;
2875 float x3 = this.velocity.X;
2876 this.rotation = x3;
2877 if (npc != null)
2878 {
2879 int num7 = 1;
2880 NPCAimedTarget targetData = this.GetTargetData(num7 != 0);
2881 if (array5 == null)
2882 {
2883 }
2884 if (!true)
2885 {
2886 }
2887 return;
2888 }
2889 float y3 = this.velocity.Y;
2891 float x4 = this.velocity.X;
2892 if (this.collideX || this.collideY)
2893 {
2894 int direction = this.direction;
2895 float x5 = this.oldVelocity.X;
2896 float x6 = this.position.X;
2898 return;
2899 }
2900 return;
2901 }
2902 }
2903 else
2904 {
2905 int num4;
2906 while (num4 != 0)
2907 {
2908 }
2909 }
2910 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
Vector2 oldVelocity
Definition Entity.cs:469
float[] localAI
Definition NPC.cs:11387
void TargetClosest(bool faceTarget=true)
Definition NPC.cs:4701
NPCAimedTarget GetTargetData(bool ignorePlayerTankPets=true)
Definition NPC.cs:250
float[] ai
Definition NPC.cs:11384
bool collideX
Definition NPC.cs:11480
bool collideY
Definition NPC.cs:11483
IEntitySource GetSpawnSourceForNPCFromNPCAI()
Definition NPC.cs:7706
NPC AI_113_WindyBalloon_GetSlaveNPC()
Definition NPC.cs:2913

References Terraria.NPC.ai, Terraria.NPC.AI_113_WindyBalloon_GetSlaveNPC(), System.array, Terraria.NPC.collideX, Terraria.NPC.collideY, Terraria.Entity.direction, Terraria.NPC.GetSpawnSourceForNPCFromNPCAI(), Terraria.NPC.GetTargetData(), j__TPar, Terraria.NPC.localAI, Terraria.Main.LogicHost, Terraria.Entity.oldVelocity, Terraria.Entity.position, Terraria.NPC.TargetClosest(), Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.