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

void Terraria.NPC.AI_003_Fighters ( )
inlineprivate

Definition at line 3745 of file NPC.cs.

3746 {
3747 int num = 1;
3748 float y = this.TargetPlayer.position.Y;
3749 int height = this.TargetPlayer.height;
3750 int height2 = this.height;
3751 float y2 = this.position.Y;
3752 this.directionY = num;
3753 int num2 = this.type;
3754 bool flag = this.AI_003_Gnomes_ShouldTurnToStone();
3755 Vector2 center = base.Center;
3756 int num3 = 15744;
3757 int num4 = 32640;
3758 Vector2 bottom = base.Bottom;
3759 float x = this.position.X;
3760 float y3 = this.position.Y;
3761 float x2 = this.netOffset.X;
3762 float y4 = this.netOffset.Y;
3763 if (num3 == 0)
3764 {
3765 }
3766 this.position.X = (float)height;
3767 this.position.Y = (float)height2;
3768 int width = this.width;
3769 bool wet = this.wet;
3770 if (num3 == 0)
3771 {
3772 }
3773 if (num4 == 0)
3774 {
3775 }
3776 float x3 = this.position.X;
3777 float y5 = this.position.Y;
3778 float x4 = this.netOffset.X;
3779 float y6 = this.netOffset.Y;
3782 bool flag2 = WorldGen.SolidTileAllowBottomSlope(0, wet ? 1 : 0);
3783 float x5 = this.position.X;
3784 float y7 = this.position.Y;
3785 float x6 = this.netOffset.X;
3786 float y8 = this.netOffset.Y;
3787 if (!false)
3788 {
3789 }
3792 int width2 = this.width;
3793 bool wet2 = this.wet;
3794 if (!false)
3795 {
3796 }
3797 long num5 = 0L;
3798 if (num4 == 0)
3799 {
3800 }
3801 float x7 = this.position.X;
3802 float y9 = this.position.Y;
3803 float x8 = this.netOffset.X;
3804 float y10 = this.netOffset.Y;
3807 bool logicHost = Main.LogicHost;
3808 int direction = this.direction;
3809 int num6 = 5;
3810 if (num4 == 0)
3811 {
3812 }
3813 int num7 = 567;
3814 long num8 = 0L;
3815 long num9 = 0L;
3816 int num10;
3817 bool flag3 = WorldGen.PlaceTile(0, num6, num7, num8 != 0L, num9 != 0L, (int)num5, num10);
3818 if (!false)
3819 {
3820 }
3821 bool netHost = Main.NetHost;
3822 if (!false)
3823 {
3824 }
3825 bool logicHost2 = Main.LogicHost;
3827 if (!false)
3828 {
3829 }
3832 }
class f__AnonymousType0<< Count > j__TPar
Vector2 position
Definition Entity.cs:460
Vector2 netOffset
Definition NPC.cs:11129
Player TargetPlayer
Definition NPC.cs:78
bool AI_003_Gnomes_ShouldTurnToStone()
Definition NPC.cs:3727
void CountKillForBannersAndDropThem()
Definition NPC.cs:5631
bool IsNPCValidForBestiaryKillCredit()
Definition NPC.cs:5161

References Terraria.NPC.AI_003_Gnomes_ShouldTurnToStone(), Terraria.NPC.CountKillForBannersAndDropThem(), Terraria.Entity.direction, Terraria.Entity.height, Terraria.NPC.IsNPCValidForBestiaryKillCredit(), j__TPar, System.L, Terraria.Main.LogicHost, Terraria.Main.NetHost, Terraria.NPC.netOffset, Terraria.GameContent.Achievements.AchievementsHelper.NotifyProgressionEvent(), Terraria.WorldGen.PlaceTile(), Terraria.Entity.position, Terraria.WorldGen.SolidTileAllowBottomSlope(), Terraria.NPC.TargetPlayer, Terraria.NPC.type, Terraria.Entity.wet, Terraria.Entity.width, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.