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

void Terraria.Projectile.AI_032 ( )
inlineprivate

Definition at line 5666 of file Projectile.cs.

5667 {
5668 int num = 10;
5669 this.timeLeft = num;
5670 float x = this.position.X;
5671 float y = this.position.Y;
5672 int num2 = 32640;
5673 int width = this.width;
5674 bool wet = this.wet;
5675 int num3 = 32768;
5676 int num4 = 49296;
5677 if (num2 == 0)
5678 {
5679 }
5680 if (num2 != 0)
5681 {
5683 bool flag = rectangle.Intersects(rectangle);
5684 float x2 = this.velocity.X;
5685 this.velocity.Y = (float)num4;
5688 this.velocity.Y = y;
5689 float x3 = this.velocity.X;
5690 float y2 = this.velocity.Y;
5691 if (num2 == 0)
5692 {
5693 }
5694 int value = num3.m_value;
5696 this.velocity.Y = y;
5697 float num5;
5698 this.netUpdate = num5 != null;
5699 }
5700 int num6 = 49296;
5701 int whoAmI = this.whoAmI;
5702 if (whoAmI == 0)
5703 {
5704 }
5705 if (whoAmI != 0)
5706 {
5709 float x4 = this.velocity.X;
5710 this.velocity.Y = (float)num6;
5713 this.velocity.Y = y;
5714 float x5 = this.velocity.X;
5715 float y3 = this.velocity.Y;
5716 if (whoAmI == 0)
5717 {
5718 }
5719 int value2 = num3.m_value;
5721 this.velocity.Y = y;
5722 float num7;
5723 this.netUpdate = num7 != null;
5724 }
5725 float x6 = this.velocity.X;
5726 float y4 = this.velocity.Y;
5727 this.Kill();
5728 float x7 = this.velocity.X;
5729 float num8 = this.rotation;
5730 float y5 = this.velocity.Y;
5731 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
Vector2 position
Definition Entity.cs:460
void Intersects(Rectangle value, [Out] bool result)
Definition Rectangle.cs:263

References Microsoft.Xna.Framework.Rectangle.Intersects(), j__TPar, Terraria.Projectile.Kill(), Terraria.Entity.position, Terraria.Projectile.rotation, System.value, Terraria.Entity.velocity, Terraria.Entity.wet, Terraria.Entity.whoAmI, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.