Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ nearPicture2()

static bool Terraria.WorldGen.nearPicture2 ( int x,
int y )
inlinestatic

Definition at line 26138 of file WorldGen.cs.

26139 {
26140 if (Main.tile[x, y].wall != 7 && Main.tile[x, y].wall != 8 && Main.tile[x, y].wall != 9)
26141 {
26142 for (int i = x - 8; i <= x + 8; i++)
26143 {
26144 for (int j = y - 5; j <= y + 5; j++)
26145 {
26146 if (Main.tile[i, j].active() && (Main.tile[i, j].type == 240 || Main.tile[i, j].type == 241 || Main.tile[i, j].type == 242))
26147 {
26148 return true;
26149 }
26150 }
26151 }
26152 }
26153 else
26154 {
26155 for (int k = x - 15; k <= x + 15; k++)
26156 {
26157 for (int l = y - 10; l <= y + 10; l++)
26158 {
26159 if (Main.tile[k, l].active() && (Main.tile[k, l].type == 240 || Main.tile[k, l].type == 241 || Main.tile[k, l].type == 242))
26160 {
26161 return true;
26162 }
26163 }
26164 }
26165 }
26166 return false;
26167 }

References Terraria.Main.tile.