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

void Terraria.NPC.AI_114_Dragonflies ( )
inlineprivate

Definition at line 2728 of file NPC.cs.

2729 {
2730 if (this.localAI == null)
2731 {
2732 }
2733 bool logicHost = Main.LogicHost;
2734 float[] array = this.localAI;
2735 int num = 16256;
2736 Vector2 center = base.Center;
2737 if (this.ai == null)
2738 {
2739 }
2740 if (num == 0)
2741 {
2742 }
2743 float[] array2 = this.ai;
2744 int num2 = 1;
2745 this.netUpdate = num2 != 0;
2746 float[] array3 = this.ai;
2747 if (32640 == 0)
2748 {
2749 float x = this.velocity.X;
2750 float y = this.velocity.Y;
2751 if (-2147483648 == 0)
2752 {
2753 }
2754 float y2;
2756 bool logicHost2 = Main.LogicHost;
2757 if (this.ai == null)
2758 {
2759 }
2760 float[] array4 = this.ai;
2761 if (17088 == 0)
2762 {
2763 }
2764 return;
2765 }
2766 float[] array5 = this.ai;
2767 int num3 = 1;
2768 this.netUpdate = num3 != 0;
2769 Vector2 center2 = base.Center;
2770 Vector2 center3 = base.Center;
2771 if (num3 == 0)
2772 {
2773 }
2774 Tile tile;
2775 bool flag = tile.nactive();
2776 if (-2147483648 == 0)
2777 {
2778 }
2779 Tile tile2;
2780 ushort num4 = tile2.type;
2781 if (-2147483648 == 0)
2782 {
2783 if (-2147483648 == 0)
2784 {
2785 }
2786 Tile tile3;
2787 byte liquid = tile3.liquid;
2788 }
2789 float y3 = this.velocity.Y;
2792 float y4 = this.velocity.Y;
2793 if (-2147483648 == 0)
2794 {
2795 }
2796 Tile tile4;
2797 bool flag2 = tile4.nactive();
2798 if (-2147483648 == 0)
2799 {
2800 }
2801 Tile tile5;
2802 ushort num5 = tile5.type;
2803 if (-2147483648 == 0)
2804 {
2805 float y2 = this.velocity.Y;
2807 return;
2808 }
2809 float x2 = this.velocity.X;
2810 float[] array6;
2812 if (this.wet)
2813 {
2814 int num6 = 49216;
2815 this.velocity.Y = (float)num6;
2816 }
2817 float[] array7 = this.localAI;
2818 }
class f__AnonymousType0<< Count > j__TPar
Vector2 velocity
Definition Entity.cs:463
float[] localAI
Definition NPC.cs:11387
float[] ai
Definition NPC.cs:11384

References Terraria.NPC.ai, System.array, j__TPar, Terraria.Tile.liquid, Terraria.NPC.localAI, Terraria.Main.LogicHost, Terraria.Tile.nactive(), Terraria.Tile.type, Terraria.Entity.velocity, Terraria.Entity.wet, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.