Definition at line 1004 of file SmartCursorHelper.cs.
1005 {
1007 {
1008 return;
1009 }
1012 {
1014 {
1015 Tile tile = Main.tile[
i,
j + 1];
1017 if ((
double)
j > Main.worldSurface - 2.0)
1018 {
1019 break;
1020 }
1021 bool flag = true;
1022 if (!
tile2.active() || !tile.active())
1023 {
1024 flag = false;
1025 }
1026 if (
tile2.slope() > 0 || tile.slope() > 0 ||
tile2.halfBrick() || tile.halfBrick())
1027 {
1028 flag = false;
1029 }
1031 {
1032 flag = false;
1033 }
1034 if (tile.type != 2 && tile.type != 477 && tile.type != 109 && tile.type != 492)
1035 {
1036 flag = false;
1037 }
1038 for (
int k = i;
k <=
i + 1;
k++)
1039 {
1040 for (
int l =
j - 1;
l <=
j;
l++)
1041 {
1044 {
1045 flag = false;
1046 }
1047 }
1048 }
1049 if (flag)
1050 {
1052 }
1053 }
1054 }
1056 {
1057 float num = -1f;
1060 {
1062 if (num == -1f ||
num2 < num)
1063 {
1066 }
1067 }
1069 {
1072 }
1073 }
1075 }
static List< Tuple< int, int > > _targets
static float Distance(Vector2 value1, Vector2 value2)
References Terraria.GameContent.SmartCursorHelper._targets, Terraria.Tile.active(), Terraria.WorldGen.CanCutTile(), Microsoft.Xna.Framework.Vector2.Distance(), Terraria.Tile.halfBrick(), Terraria.Collision.InTileBounds(), Terraria.Tile.slope(), Terraria.Main.tile, Terraria.Main.tileSolid, and Terraria.Tile.type.
Referenced by Terraria.GameContent.SmartCursorHelper.SmartCursorLookup().