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

void Terraria.Projectile.AI_176_EdgyLightning ( )
inlineprivate

Definition at line 3024 of file Projectile.cs.

3025 {
3026 if (!true)
3027 {
3028 }
3029 int num;
3030 int num4;
3031 if (num != 0)
3032 {
3033 long num2 = 0L;
3034 float num3;
3035 NPC npc = this.FindTargetWithinRange(num3, num2 != 0L);
3036 if (npc != null)
3037 {
3038 int whoAmI = npc.whoAmI;
3039 num4 = 1;
3040 this.netUpdate = num4 != 0;
3041 }
3042 this.Kill();
3043 return;
3044 }
3045 if (num4 == 0)
3046 {
3047 }
3048 if (num4 == 0)
3049 {
3050 }
3051 int num5 = this.frameCounter;
3053 if (num5 == 0)
3054 {
3055 }
3056 int num6;
3057 this.frame = num6;
3058 }
class f__AnonymousType0<< Count > j__TPar
NPC FindTargetWithinRange(float maxRange, bool checkCanHit=false)

References Terraria.Projectile.FindTargetWithinRange(), Terraria.Projectile.frameCounter, j__TPar, Terraria.Projectile.Kill(), System.L, and Terraria.Entity.whoAmI.