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

void Terraria.Projectile.AI_134_Ballista ( )
inlineprivate

Definition at line 7129 of file Projectile.cs.

7130 {
7131 int num = 1;
7132 Vector2 center = base.Center;
7133 if (num == 0)
7134 {
7135 }
7136 if (num == 0)
7137 {
7138 }
7139 int num2 = 100;
7140 int num3 = 30;
7141 int num4 = this.type;
7142 if (num3 == 0)
7143 {
7144 }
7147 int num5 = 1;
7148 int direction = this.direction;
7149 this.netUpdate = num5 != 0;
7150 int num6 = 4059;
7151 this.rotation = (float)num6;
7152 if (num6 == 0)
7153 {
7154 }
7155 int num7;
7156 if (num6 != 0)
7157 {
7158 num7 = 17008;
7159 }
7160 if (num7 == 0)
7161 {
7162 }
7163 if (num2 != 0)
7164 {
7165 if (num2 == 0)
7166 {
7167 }
7168 }
7169 long num8 = 0L;
7170 int num9 = 17505;
7171 if (num9 == 0)
7172 {
7173 }
7174 if (num9 == 0)
7175 {
7176 }
7177 if (!true)
7178 {
7179 }
7180 if (num4 == 0)
7181 {
7182 }
7183 float num10 = this.rotation;
7184 if (num8 != 0L)
7185 {
7186 int num11 = this.owner;
7187 int myPlayer = Main.myPlayer;
7188 float num13;
7189 int num12 = Math.Sign(num13);
7191 int num14 = 1;
7192 this.netUpdate = num14 != 0;
7193 return;
7194 }
7195 float y = this.velocity.Y;
7196 int direction2 = this.direction;
7197 int num15 = 1;
7198 this.tileCollide = num15 != 0;
7200 this.velocity.Y = y;
7201 }
class f__AnonymousType0<< Count > j__TPar
static int Sign(double value)
Definition Math.cs:252
Vector2 velocity
Definition Entity.cs:463

References Terraria.Entity.direction, j__TPar, System.L, Terraria.Main.myPlayer, Terraria.Projectile.owner, Terraria.Projectile.rotation, System.Math.Sign(), Terraria.Projectile.type, Terraria.Entity.velocity, and Microsoft.Xna.Framework.Vector2.Y.