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

void Terraria.Projectile.AI_019_Spears_Old ( )
inlineprivate

Definition at line 3472 of file Projectile.cs.

3473 {
3474 if (!true)
3475 {
3476 }
3477 int whoAmI = this.whoAmI;
3478 int width = this.width;
3479 bool wet = this.wet;
3480 if (width == 0)
3481 {
3482 int num = this.type;
3483 int num2 = 1;
3484 this.netUpdate = num2 != 0;
3485 if (num2 == 0)
3486 {
3487 }
3488 int myPlayer = Main.myPlayer;
3489 int num3 = this.owner;
3490 float x = this.velocity.X;
3491 float y = this.velocity.Y;
3492 if (num3 == 0)
3493 {
3494 }
3496 Vector2 center = base.Center;
3497 float x2 = this.velocity.X;
3498 Vector2 center2 = base.Center;
3499 float y2 = this.velocity.Y;
3500 int num4 = this.damage;
3501 float num5 = this.knockBack;
3502 int num6 = this.owner;
3503 return;
3504 }
3505 float x3 = this.position.X;
3506 float y3 = this.position.Y;
3507 float x4 = this.velocity.X;
3508 float y4 = this.velocity.Y;
3509 int num7 = this.type;
3511 float x5 = this.position.X;
3512 float y5 = this.position.Y;
3513 int width2 = this.width;
3514 bool wet2 = this.wet;
3515 float x6 = this.velocity.X;
3516 float y6 = this.velocity.Y;
3517 int num8 = this.damage;
3518 int num9 = this.owner;
3519 int num10;
3520 if (num10 == 0)
3521 {
3522 }
3523 int num11 = 21846;
3524 if (num11 == 0)
3525 {
3526 }
3527 if (num11 == 0)
3528 {
3529 this.Kill();
3530 }
3531 float x7 = this.velocity.X;
3532 float y7 = this.velocity.Y;
3533 if (num11 == 0)
3534 {
3535 }
3536 int num12 = this.spriteDirection;
3537 int num13 = this.type;
3538 if (num13 == 0)
3539 {
3540 }
3541 int num14;
3542 if (num14 == 0)
3543 {
3544 float x8 = this.position.X;
3545 float y8 = this.position.Y;
3546 int width3 = this.width;
3547 bool wet3 = this.wet;
3548 if (num13 == 0)
3549 {
3550 }
3551 }
3552 float x9 = this.position.X;
3553 float y9 = this.position.Y;
3554 int direction = this.direction;
3555 int height = this.height;
3556 int height2 = this.height;
3557 float x10 = this.velocity.X;
3558 float y10 = this.velocity.Y;
3559 if (num13 == 0)
3560 {
3561 }
3562 if (num10 == 0)
3563 {
3564 }
3565 float x11 = this.position.X;
3566 float y11 = this.position.Y;
3567 float x12 = this.velocity.X;
3568 float y12 = this.velocity.Y;
3569 int width4 = this.width;
3570 bool wet4 = this.wet;
3571 int num15 = this.type;
3572 if (num15 == 0)
3573 {
3574 }
3575 int num16;
3576 int num17;
3577 if (num16 == 0)
3578 {
3579 float x13 = this.position.X;
3580 float y13 = this.position.Y;
3581 int width5 = this.width;
3582 bool wet5 = this.wet;
3583 if (num15 == 0)
3584 {
3585 }
3586 num17 = 1;
3587 Dust dust;
3588 dust.noGravity = num17 != 0;
3589 float x14 = dust.velocity.X;
3590 float y14 = dust.velocity.Y;
3591 if (num17 == 0)
3592 {
3593 }
3594 }
3595 if (num17 == 0)
3596 {
3597 }
3598 int num18;
3599 if (num18 == 0)
3600 {
3601 float x15 = this.position.X;
3602 float y15 = this.position.Y;
3603 int width6 = this.width;
3604 bool wet6 = this.wet;
3605 if (num17 == 0)
3606 {
3607 }
3608 Dust dust2;
3609 float y16 = dust2.velocity.Y;
3611 return;
3612 }
3613 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
IEntitySource GetProjectileSource_FromThis()

References Terraria.Projectile.damage, Terraria.Entity.direction, Terraria.Projectile.GetProjectileSource_FromThis(), Terraria.Entity.height, j__TPar, Terraria.Projectile.Kill(), Terraria.Projectile.knockBack, Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Entity.position, Terraria.Projectile.spriteDirection, Terraria.Projectile.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.