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

◆ SpotActuallyNotInHive()

static bool Terraria.GameContent.Biomes.HiveBiome.SpotActuallyNotInHive ( int x,
int y )
inlinestaticprivate

Definition at line 366 of file HiveBiome.cs.

367 {
368 for (int i = x - 1; i <= x + 2; i++)
369 {
370 for (int j = y - 1; j <= y + 2; j++)
371 {
372 if (i < 10 || i > Main.maxTilesX - 10)
373 {
374 return true;
375 }
376 if (Main.tile[i, j].active() && Main.tile[i, j].type != 225)
377 {
378 return true;
379 }
380 }
381 }
382 return false;
383 }

References Terraria.Main.maxTilesX, and Terraria.Main.tile.

Referenced by Terraria.GameContent.Biomes.HiveBiome.Place().