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

void Terraria.NPC.AI_115_LadyBugs ( )
inlineprivate

Definition at line 2606 of file NPC.cs.

2607 {
2608 int num = 1;
2609 if (num == 0)
2610 {
2611 }
2612 bool logicHost = Main.LogicHost;
2613 float[] array = this.ai;
2614 if (num == 0)
2615 {
2616 }
2617 int num2 = 1;
2618 this.netUpdate = num2 != 0;
2619 float[] array2 = this.localAI;
2620 if (num2 == 0)
2621 {
2622 }
2623 int num3;
2624 int num4;
2625 if (num3 == 0)
2626 {
2627 float[] array3 = this.ai;
2628 num4 = 16256;
2629 int num5 = 1;
2630 this.netUpdate = num5 != 0;
2631 return;
2632 }
2633 int num6 = 1;
2634 this.TargetClosest(num6 != 0);
2635 float[] array4 = this.ai;
2636 int num7;
2637 if (num7 == 0)
2638 {
2639 }
2640 if (num4 == 0)
2641 {
2642 }
2643 Vector2 center = this.TargetPlayer.Center;
2644 int num8 = 17455;
2645 float[] array5 = this.ai;
2647 if (num8 == 0)
2648 {
2649 }
2650 if (num4 == 0)
2651 {
2652 }
2653 int num9 = 1;
2654 this.netUpdate = num9 != 0;
2655 float[] array6 = this.ai;
2656 this.scale = (float)num4;
2657 if (num4 == 0)
2658 {
2659 }
2660 float num10;
2661 Vector2 vector = num10.ToRotationVector2();
2662 if (array6 == null)
2663 {
2664 }
2665 if (array6 == null)
2666 {
2667 }
2668 float x = this.velocity.X;
2669 float y = this.velocity.Y;
2670 this.velocity.X = x;
2671 this.velocity.Y = y;
2672 Vector2 center3 = base.Center;
2673 Vector2 center4 = base.Center;
2674 Tile tile;
2675 bool flag = tile.nactive();
2676 if (-2147483648 == 0)
2677 {
2678 }
2679 Tile tile2;
2680 ushort num11 = tile2.type;
2681 if (-2147483648 == 0)
2682 {
2683 if (-2147483648 == 0)
2684 {
2685 }
2686 Tile tile3;
2687 byte liquid = tile3.liquid;
2688 }
2689 float[] array7 = this.ai;
2690 float y2 = this.velocity.Y;
2692 float y3 = this.velocity.Y;
2693 Vector2 center5 = base.Center;
2694 Vector2 center6 = base.Center;
2695 if (array7 == null)
2696 {
2697 }
2698 Tile tile4;
2699 bool flag2 = tile4.nactive();
2700 if (-2147483648 == 0)
2701 {
2702 }
2703 Tile tile5;
2704 ushort num12 = tile5.type;
2705 if (-2147483648 == 0)
2706 {
2707 if (-2147483648 == 0)
2708 {
2709 }
2710 Tile tile6;
2711 byte liquid2 = tile6.liquid;
2712 }
2713 float[] array8 = this.ai;
2714 float y4 = this.velocity.Y;
2716 if (this.collideX)
2717 {
2718 float[] array9 = this.ai;
2719 float x2 = this.velocity.X;
2720 return;
2721 }
2722 float x3 = this.velocity.X;
2723 int num13;
2725 }
class f__AnonymousType0<< Count > j__TPar
Vector2 Center
Definition Entity.cs:134
Vector2 velocity
Definition Entity.cs:463
float[] localAI
Definition NPC.cs:11387
Player TargetPlayer
Definition NPC.cs:78
void TargetClosest(bool faceTarget=true)
Definition NPC.cs:4701
float[] ai
Definition NPC.cs:11384
bool collideX
Definition NPC.cs:11480

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