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

◆ CanHitWithOwnBody()

bool Terraria.Projectile.CanHitWithOwnBody ( Entity ent)
inline

Definition at line 586 of file Projectile.cs.

587 {
588 int num = 1;
589 Vector2 center = ent.Center;
590 float num2 = this.ownerHitCheckDistance;
591 float x = this.position.X;
592 float y = this.position.Y;
593 int width = this.width;
594 bool wet = this.wet;
595 float x2 = ent.position.X;
596 float y2 = ent.position.Y;
597 int width2 = ent.width;
598 bool wet2 = ent.wet;
599 if (num == 0)
600 {
601 }
602 Vector2 center2 = base.Center;
603 int direction = this.direction;
604 int height = this.height;
605 int height2 = this.height;
606 if (direction == 0)
607 {
608 }
609 Vector2 center3 = ent.Center;
610 if (ent.height == 0)
611 {
612 }
613 Vector2 center4 = base.Center;
614 int direction2 = this.direction;
615 int height3 = this.height;
616 int height4 = this.height;
617 int num3 = 21846;
618 if (direction2 == 0)
619 {
620 }
621 Vector2 center5 = ent.Center;
622 if (direction2 == 0)
623 {
624 }
625 if (direction2 == 0)
626 {
627 }
628 if (height4 == 0)
629 {
630 }
631 Vector2 top = base.Top;
632 Vector2 top2 = ent.Top;
633 if (width2 != 0)
634 {
635 Vector2 top3 = base.Top;
636 if (num3 == 0)
637 {
638 }
639 if ((width != 0 && width == 0) || (width != 0 && width == 0))
640 {
641 throw new ArrayTypeMismatchException();
642 }
643 Point point;
644 float num4;
645 Vector2 vector = point.ToWorldCoordinates(num4, num4);
646 Vector2 top4 = ent.Top;
647 if (num3 == 0)
648 {
649 }
651 Vector2 vector2 = point2.ToWorldCoordinates(num4, num4);
652 }
653 bool flag;
654 return flag;
655 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460

References Terraria.Entity.direction, Terraria.Entity.height, j__TPar, Terraria.Projectile.ownerHitCheckDistance, Terraria.Entity.position, Terraria.Entity.wet, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.

Referenced by Terraria.Projectile.IsInRangeOfMeOrMyOwner().