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

◆ NoNearbyGlowTulips()

static bool Terraria.WorldGen.NoNearbyGlowTulips ( int i,
int j )
inlinestaticprivate

Definition at line 67345 of file WorldGen.cs.

67346 {
67347 int num5 = Utils.Clamp(i - 120, 10, Main.maxTilesX - 1 - 10);
67348 int num2 = Utils.Clamp(i + 120, 10, Main.maxTilesX - 1 - 10);
67349 int num3 = Utils.Clamp(j - 120, 10, Main.maxTilesY - 1 - 10);
67350 int num4 = Utils.Clamp(j + 120, 10, Main.maxTilesY - 1 - 10);
67351 for (int k = num5; k <= num2; k++)
67352 {
67353 for (int l = num3; l <= num4; l++)
67354 {
67355 Tile tile = Main.tile[k, l];
67356 if (tile.active() && tile.type == 656)
67357 {
67358 return false;
67359 }
67360 }
67361 }
67362 return true;
67363 }

References Terraria.Tile.active(), Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.tile, and Terraria.Tile.type.

+ Here is the call graph for this function: