Definition at line 12861 of file NPC.cs.
12862 {
12863 int num = (int)
base.Center.X / 16;
12864 int num2 = (int)
base.Center.Y / 16;
12866 bool flag = false;
12869 {
12871 flag = false;
12872 }
12873 while (!flag &&
num3 < 100)
12874 {
12878 {
12880 {
12881 continue;
12882 }
12884 if ((
type == 32 || (
type >= 281 &&
type <= 286)) && !Main.wallDungeon[Main.tile[
num5, i - 1].wall])
12885 {
12887 {
12889 }
12890 }
12891 else if (Main.tile[
num5, i - 1].lava())
12892 {
12894 }
12896 {
12897 continue;
12898 }
12899 bool flag3 =
false;
12901 {
12902 continue;
12903 }
12906 for (
int j = 0;
j < Main.player.Length;
j++)
12907 {
12908 Player player = Main.player[
j];
12909 if (player != null && player.active && !player.DeadOrGhost)
12910 {
12915 {
12917 flag = false;
12918 break;
12919 }
12920 }
12921 }
12923 {
12925 flag = true;
12926 }
12927 break;
12928 }
12929 }
12930 return flag;
12931 }
static double Abs(double value)
static bool AnyNPCs(int Type)
static Rectangle Union(Rectangle value1, Rectangle value2)
References System.Math.Abs(), Terraria.Entity.active, Terraria.NPC.AnyNPCs(), Terraria.Player.DeadOrGhost, Terraria.Entity.Hitbox, Terraria.Main.player, Terraria.Main.rand, Terraria.Collision.SolidTiles(), Terraria.Main.tile, Terraria.Main.tileSolid, Terraria.NPC.type, Microsoft.Xna.Framework.Rectangle.Union(), Terraria.NPC.value, Microsoft.Xna.Framework.Graphics.Vector2, Terraria.Entity.velocity, Terraria.Main.wallDungeon, Microsoft.Xna.Framework.Vector2.X, and Microsoft.Xna.Framework.Vector2.Y.
Referenced by Terraria.NPC.AI(), and Terraria.NPC.AI_003_Fighters().