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

void Terraria.Projectile.AI_140_MonkStaffT1 ( )
inlineprivate

Definition at line 7303 of file Projectile.cs.

7304 {
7305 int num = 1;
7306 if (num == 0)
7307 {
7308 }
7309 if (num == 0)
7310 {
7311 }
7312 int num2 = 1;
7313 if (num2 == 0)
7314 {
7315 }
7316 if (num2 != 0)
7317 {
7318 this.Kill();
7319 return;
7320 }
7321 int num3 = this.type;
7322 int num4 = this.damage;
7323 float x = this.velocity.X;
7324 if (num4 == 0)
7325 {
7326 }
7328 float x2 = this.velocity.X;
7329 int num5 = this.alpha;
7330 this.alpha = num5;
7331 float num6 = this.rotation;
7332 int num7 = 16968;
7333 int num9;
7334 if (num7 != 0)
7335 {
7336 if (num7 == 0)
7337 {
7338 }
7339 Vector2 mouseWorld = Main.MouseWorld;
7340 float x3 = this.velocity.X;
7341 float num8 = this.rotation;
7342 num9 = 1;
7343 this.netUpdate = num9 != 0;
7346 return;
7347 }
7348 this.Kill();
7349 float num10 = this.rotation;
7350 float num11;
7351 Vector2 vector = num11.ToRotationVector2();
7352 Vector2 center = base.Center;
7353 Vector2 vector2 = num11.ToRotationVector2();
7354 int num12;
7355 if (num12 == 0)
7356 {
7357 Dust dust;
7358 float x4 = dust.position.X;
7359 float y = dust.position.Y;
7360 float x5 = dust.velocity.X;
7361 float y2 = dust.velocity.Y;
7363 dust.velocity.Y = y;
7364 }
7365 Dust dust2;
7366 float x6 = dust2.position.X;
7367 float y3 = dust2.position.Y;
7368 float x7 = dust2.velocity.X;
7369 float y4 = dust2.velocity.Y;
7370 int num13 = 1;
7373 dust2.noGravity = num13 != 0;
7375 int num14 = 1;
7376 Dust dust3;
7377 float x8 = dust3.velocity.X;
7378 float y5 = dust3.velocity.Y;
7379 float num15 = dust3.scale;
7382 dust3.noGravity = num14 != 0;
7383 dust3.scale = x8;
7384 int num16 = 16956;
7385 int num17 = this.owner;
7386 if (num16 == 0)
7387 {
7388 }
7389 int myPlayer = Main.myPlayer;
7390 if (num9 == 0)
7391 {
7392 }
7394 if (49776 == 0)
7395 {
7396 }
7397 int num18 = 1;
7398 if (num18 == 0)
7399 {
7400 }
7401 int num19 = this.owner;
7402 int value = num18.m_value;
7403 if (num18 == 0)
7404 {
7405 }
7406 if (num18 == 0)
7407 {
7408 }
7409 Vector2 center2 = base.Center;
7410 if (this.type == 0)
7411 {
7412 }
7413 float x9 = this.velocity.X;
7414 float num21;
7415 int num20 = Math.Sign(num21);
7416 float x10 = this.velocity.X;
7417 this.rotation = x8;
7418 this.rotation = x8;
7419 int num22 = this.alpha;
7420 this.alpha = num22;
7421 float num23 = this.rotation;
7422 int num24 = 16968;
7423 if (num24 != 0)
7424 {
7425 if (num24 == 0)
7426 {
7427 }
7428 Vector2 mouseWorld2 = Main.MouseWorld;
7429 float x11 = this.velocity.X;
7430 float num25 = this.rotation;
7431 int num26 = 1;
7432 this.netUpdate = num26 != 0;
7435 return;
7436 }
7437 this.Kill();
7438 int num27 = 2;
7439 int num28 = this.owner;
7440 if (num27 == 0)
7441 {
7442 }
7443 int myPlayer2 = Main.myPlayer;
7444 if (num27 == 0)
7445 {
7446 }
7447 Vector2 mouseWorld3 = Main.MouseWorld;
7448 if (num27 == 0)
7449 {
7450 }
7451 }
class f__AnonymousType0<< Count > j__TPar
static int Sign(double value)
Definition Math.cs:252
Vector2 velocity
Definition Entity.cs:463
IEntitySource GetProjectileSource_FromThis()

References Terraria.Projectile.alpha, Terraria.Projectile.damage, Terraria.Projectile.GetProjectileSource_FromThis(), j__TPar, Terraria.Projectile.Kill(), Terraria.Main.MouseWorld, Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Dust.position, Terraria.Projectile.rotation, System.Math.Sign(), Terraria.Projectile.type, System.value, Terraria.Dust.velocity, Terraria.Entity.velocity, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.