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

void Terraria.NPC.AI_122_PirateGhost ( )
inline

Definition at line 2151 of file NPC.cs.

2152 {
2153 float[] array = this.localAI;
2154 if (array == null)
2155 {
2156 }
2157 float x = this.position.X;
2158 float y = this.position.Y;
2159 int num = 1;
2160 bool invalid = this.GetTargetData(num != 0).Invalid;
2161 int num2 = 1;
2162 this.TargetClosest(num2 != 0);
2163 int num3 = 1;
2164 bool invalid2 = this.GetTargetData(num3 != 0).Invalid;
2165 float x2 = this.velocity.X;
2166 float y2 = this.velocity.Y;
2167 if (array == null)
2168 {
2169 }
2170 this.velocity.X = x;
2171 this.velocity.Y = y;
2172 int num4 = this.alpha;
2173 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
float[] localAI
Definition NPC.cs:11387
void TargetClosest(bool faceTarget=true)
Definition NPC.cs:4701
NPCAimedTarget GetTargetData(bool ignorePlayerTankPets=true)
Definition NPC.cs:250
int alpha
Definition NPC.cs:11447

References Terraria.NPC.alpha, System.array, Terraria.NPC.GetTargetData(), Terraria.DataStructures.NPCAimedTarget.Invalid, j__TPar, Terraria.NPC.localAI, Terraria.Entity.position, Terraria.NPC.TargetClosest(), Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.