Definition at line 37843 of file NPC.cs.
37844 {
37845 int num = (int)
ai[0];
37847 {
37849 if (Main.netMode != 1)
37850 {
37851 NetMessage.SendData(23, -1, -1,
null,
whoAmI);
37852 }
37853 return;
37854 }
37855 NPC nPC = Main.npc[num];
37856 if (!
nPC.active ||
nPC.type != 668)
37857 {
37859 if (Main.netMode != 1)
37860 {
37861 NetMessage.SendData(23, -1, -1,
null,
whoAmI);
37862 }
37863 return;
37864 }
37867 float num2 = targetData.Center.X - (float)(
width / 2);
37874 {
37876 }
37880 {
37882 }
37884 {
37887 {
37889 }
37890 }
37891 int num8 = ((
ai[1] != 0f) ? 1 : (-1));
37893 {
37903 {
37907 }
37908 value.Y -= (1f -
num10) * 30f;
37910 base.Bottom = bottom;
37911 }
37914 {
37916 }
37918 }
static byte Min(byte val1, byte val2)
static double Abs(double value)
static int Sign(decimal value)
static ? float TryFindingFloor(Vector2 searchStartPositionInWorld, int searchRange, out int tilesTraveled)
static Vector2 Lerp(Vector2 value1, Vector2 value2, float amount)
References System.Math.Abs(), Terraria.Entity.active, Terraria.NPC.ai, Microsoft.Xna.Framework.Vector2.Lerp(), Terraria.NPC.localAI, System.Math.Min(), Terraria.Main.netMode, Terraria.Main.npc, Terraria.Entity.position, Terraria.NetMessage.SendData(), System.Math.Sign(), Terraria.NPC.spriteDirection, Terraria.NPC.TryFindingFloor(), Terraria.NPC.value, Microsoft.Xna.Framework.Graphics.Vector2, Terraria.Entity.whoAmI, Terraria.Entity.width, and Microsoft.Xna.Framework.Vector2.X.