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

void Terraria.NPC.AI_111_DD2LightningBug ( )
inlineprivate

Definition at line 4102 of file NPC.cs.

4103 {
4104 Vector2 center = base.Center;
4105 int num = 1;
4106 NPCAimedTarget targetData = this.GetTargetData(num != 0);
4107 int num2 = this.type;
4108 int num3 = this.spriteDirection;
4109 if (num3 == 0)
4110 {
4111 }
4112 float x = this.position.X;
4113 float y = this.position.Y;
4114 float x2 = this.netOffset.X;
4115 float y2 = this.netOffset.Y;
4116 this.position.X = x;
4117 if (num3 == 0)
4118 {
4119 }
4120 int num4;
4121 int num5;
4122 int direction2;
4123 if (num4 == 0)
4124 {
4125 int direction = this.direction;
4126 int height = this.height;
4127 float x3 = this.position.X;
4128 float y3 = this.position.Y;
4129 int height2 = this.height;
4130 Dust dust;
4131 float x4 = dust.velocity.X;
4132 float y4 = dust.velocity.Y;
4133 num5 = 26214;
4134 dust.scale = (float)num5;
4136 direction2 = this.direction;
4138 if (num5 == 0)
4139 {
4140 }
4141 dust.velocity.X = (float)direction2;
4142 }
4143 if (num5 == 0)
4144 {
4145 }
4146 int num6;
4147 float x6;
4148 float y6;
4149 if (num6 == 0)
4150 {
4151 if (num5 == 0)
4152 {
4153 }
4154 float num7;
4155 Vector2 vector = num7.ToRotationVector2();
4156 Vector2 center2 = base.Center;
4157 Dust dust2;
4158 float x5 = dust2.velocity.X;
4159 float y5 = dust2.velocity.Y;
4160 int num8 = 1;
4162 dust2.noGravity = num8 != 0;
4163 dust2.customData = this;
4164 Vector2 center3 = base.Center;
4165 Dust dust3;
4166 x6 = dust3.velocity.X;
4167 y6 = dust3.velocity.Y;
4170 dust3.noGravity = num8 != 0;
4171 dust3.customData = this;
4172 }
4173 float x7 = this.position.X;
4174 float y7 = this.position.Y;
4175 float x8 = this.netOffset.X;
4176 float y8 = this.netOffset.Y;
4177 float[] array = this.localAI;
4180 int num9 = 255;
4181 this.alpha = num9;
4182 if (array == null)
4183 {
4184 }
4185 Vector2 center4 = base.Center;
4186 float[] array2 = this.localAI;
4187 int num10 = this.alpha;
4188 this.alpha = num10;
4189 float num11 = base.Size.Length();
4190 int num12 = this.type;
4191 int num13 = 52429;
4192 int num14 = 13107;
4193 if (num12 == 0)
4194 {
4195 }
4196 int num15;
4197 if (num15 == 0)
4198 {
4199 float x9 = this.position.X;
4200 float y9 = this.position.Y;
4201 int width = this.width;
4202 bool wet = this.wet;
4203 float x10 = this.velocity.X;
4204 Dust dust4;
4205 dust4.scale = (float)num13;
4206 dust4.fadeIn = (float)num14;
4207 float x11 = dust4.velocity.X;
4208 float y10 = dust4.velocity.Y;
4211 float x12 = this.velocity.X;
4212 float y11 = this.velocity.Y;
4215 }
4216 int whoAmI = this.whoAmI;
4217 if (whoAmI == 0)
4218 {
4219 }
4220 if (whoAmI != 0)
4221 {
4222 if (whoAmI == 0)
4223 {
4224 }
4225 int num16 = this.type;
4226 float x13 = this.position.X;
4227 if (whoAmI == 0)
4228 {
4229 }
4230 if (num16 == 0)
4231 {
4232 }
4233 float y12 = this.position.Y;
4234 int width2 = this.width;
4235 float x14 = this.position.X;
4236 float y13 = this.position.Y;
4237 float x15 = this.velocity.X;
4239 float y14 = this.velocity.Y;
4240 return;
4241 }
4242 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
Vector2 netOffset
Definition NPC.cs:11129
float[] localAI
Definition NPC.cs:11387
int spriteDirection
Definition NPC.cs:11489
NPCAimedTarget GetTargetData(bool ignorePlayerTankPets=true)
Definition NPC.cs:250
int alpha
Definition NPC.cs:11447

References Terraria.NPC.alpha, System.array, Terraria.Entity.direction, Terraria.NPC.GetTargetData(), Terraria.Entity.height, j__TPar, Terraria.NPC.localAI, Terraria.NPC.netOffset, Terraria.Entity.position, Terraria.NPC.spriteDirection, Terraria.NPC.type, Terraria.Dust.velocity, Terraria.Entity.velocity, Terraria.Entity.wet, Terraria.Entity.whoAmI, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.