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

void Terraria.NPC.AI_037_Destroyer ( )
inlineprivate

Definition at line 3047 of file NPC.cs.

3048 {
3049 if (!true)
3050 {
3051 }
3052 bool isMechQueenUp = NPC.IsMechQueenUp;
3053 int num = this.type;
3054 float[] array = this.ai;
3055 float[] array2 = this.ai;
3056 int num2 = 32768;
3058 int num3 = this.target;
3059 if (this.TargetPlayer.dead)
3060 {
3061 int num4 = 1;
3062 this.TargetClosest(num4 != 0);
3063 }
3064 int num5 = this.type;
3065 if (this.type == 0)
3066 {
3067 }
3068 float[] array3 = this.ai;
3069 int num6 = this.alpha;
3070 int num7;
3071 if (num6 != 0)
3072 {
3073 float x = this.position.X;
3074 float y = this.position.Y;
3075 int width = this.width;
3076 bool wet = this.wet;
3077 if (num6 == 0)
3078 {
3079 }
3080 num7 = this.alpha;
3081 }
3082 this.alpha = num7;
3083 int num8 = this.type;
3084 float[] array4;
3085 if (this.ai == null)
3086 {
3087 array4 = this.ai;
3088 }
3089 long num9 = 0L;
3090 float num10;
3091 this.HitEffect((int)num9, (double)num10);
3092 this.checkDead();
3093 if (array4 == null)
3094 {
3095 }
3096 bool logicHost = Main.LogicHost;
3097 float[] array5 = this.ai;
3098 int num11 = this.type;
3099 int whoAmI = this.whoAmI;
3101 if (array5 == null)
3102 {
3103 }
3104 int destroyerSegmentsCount = NPC.GetDestroyerSegmentsCount();
3105 int num12 = 135;
3107 float x2 = this.position.X;
3108 float y2 = this.position.Y;
3109 int width2 = this.width;
3110 bool wet2 = this.wet;
3111 int whoAmI2 = this.whoAmI;
3112 if (num12 == 0)
3113 {
3114 }
3115 if (num11 == 0)
3116 {
3117 }
3118 int whoAmI3 = this.whoAmI;
3119 int num13 = this.type;
3120 float[] array6 = this.localAI;
3121 float[] array7 = this.localAI;
3122 float[] array8 = this.localAI;
3123 int num14 = 1;
3124 this.TargetClosest(num14 != 0);
3125 float x3 = this.position.X;
3126 float y3 = this.position.Y;
3127 int width3 = this.width;
3128 bool wet3 = this.wet;
3129 Player targetPlayer = this.TargetPlayer;
3130 float x4 = targetPlayer.position.X;
3131 float y4 = targetPlayer.position.Y;
3132 int width4 = this.TargetPlayer.width;
3133 int height = this.TargetPlayer.height;
3134 if (num13 == 0)
3135 {
3136 }
3137 int height2 = this.height;
3138 int width5 = this.width;
3139 float x5 = this.position.X;
3140 float y5 = this.position.Y;
3141 float x6 = this.TargetPlayer.position.X;
3143 int width6 = targetPlayer2.width;
3144 if (targetPlayer2 == null)
3145 {
3146 }
3149 if (num13 == 0)
3150 {
3151 }
3153 int myPlayer = Main.myPlayer;
3154 if (num13 == 0)
3155 {
3156 }
3157 long num15 = 0L;
3158 int num16 = 1;
3159 this.netUpdate = num16 != 0;
3160 float x7 = this.position.X;
3161 float y6 = this.position.Y;
3162 int width7 = this.width;
3163 int height3 = this.height;
3164 int num17 = 15744;
3165 int num18 = 32640;
3166 if (num18 != 0)
3167 {
3168 return;
3169 }
3170 if (num17 == 0)
3171 {
3172 }
3173 if (num18 != 0)
3174 {
3175 return;
3176 }
3177 if (num18 == 0)
3178 {
3179 }
3180 if (num18 == 0)
3181 {
3182 }
3183 if (num15 == 0L)
3184 {
3185 }
3186 float x8 = this.position.X;
3187 int width8 = this.width;
3188 float y7 = this.position.Y;
3189 int height4 = this.height;
3190 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
float[] localAI
Definition NPC.cs:11387
Player TargetPlayer
Definition NPC.cs:78
void TargetClosest(bool faceTarget=true)
Definition NPC.cs:4701
float[] ai
Definition NPC.cs:11384
int alpha
Definition NPC.cs:11447
IEntitySource GetSpawnSourceForNPCFromNPCAI()
Definition NPC.cs:7706
void checkDead()
Definition NPC.cs:4923
void HitEffect(int hitDirection=0, double dmg=10.0)
Definition NPC.cs:6931
IEntitySource GetSpawnSource_ForProjectile()
Definition NPC.cs:7682
int target
Definition NPC.cs:11402

References Terraria.NPC.ai, Terraria.NPC.alpha, System.array, Terraria.NPC.checkDead(), Terraria.Player.dead, Terraria.NPC.GetDestroyerSegmentsCount(), Terraria.NPC.GetSpawnSource_ForProjectile(), Terraria.NPC.GetSpawnSourceForNPCFromNPCAI(), Terraria.Entity.height, Terraria.NPC.HitEffect(), Terraria.NPC.IsMechQueenUp, j__TPar, System.L, Terraria.NPC.localAI, Terraria.Main.LogicHost, Terraria.Main.myPlayer, Terraria.Entity.position, Terraria.NPC.target, Terraria.NPC.TargetClosest(), Terraria.NPC.TargetPlayer, Terraria.NPC.type, Terraria.Entity.wet, Terraria.Entity.whoAmI, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.