Definition at line 13959 of file NPC.cs.
13960 {
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982 Vector2
vector2 =
default(Vector2);
13983 for (int i = 0; i < 200; i++)
13984 {
13986 if (!
nPC.active ||
nPC.type != 20)
13987 {
13988 continue;
13989 }
13990 nPC.localAI[2] = 480
f;
13994 nPC.localAI[3] = 0
f;
13995 nPC.netUpdate = true;
13996 nPC.direction = 1;
13997 nPC.spriteDirection = 1;
13998 Vector2
vector = nPC.Bottom +
new Vector2(100
f, 0
f);
13999 Point
p =
vector.ToTileCoordinates();
14000 p.Y = Utils.Clamp(
p.Y - 10, 10, Main.maxTilesY - 10);
14006 {
14007 Tile tile = Main.tile[
p.X,
j];
14009 if (tile.active() && Main.tileSolid[tile.type])
14010 {
14012 {
14014 }
14015 break;
14016 }
14017 }
14019 Vector2
vector3 =
p.ToWorldCoordinates(8
f, 0
f);
14021 {
14023 }
14025 break;
14026 }
14027 }
References Terraria.Tile.active(), Terraria.Main.maxTilesY, Terraria.Main.myPlayer, Terraria.Projectile.NewProjectile(), Terraria.Main.npc, Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Tile.type.
Referenced by Terraria.MessageBuffer.GetData(), and Terraria.Main.GUIChatDrawInner().