Definition at line 406 of file DesertHive.cs.
407 {
408 for (
int i = -20;
i < description.Hive.Width + 20;
i++)
409 {
410 for (
int j = -20;
j < description.Hive.Height + 20;
j++)
411 {
412 int num =
i + description.Hive.X;
413 int num2 =
j + description.Hive.Y;
415 {
420 {
421 tile.type = 397;
422 }
423 }
424 }
425 }
426 for (
int k = -20;
k < description.Hive.Width + 20;
k++)
427 {
428 for (
int l = -20;
l < description.Hive.Height + 20;
l++)
429 {
430 int num3 =
k + description.Hive.X;
431 int num4 =
l + description.Hive.Y;
433 {
434 continue;
435 }
438 {
439 continue;
440 }
441 bool flag = true;
443 {
445 {
446 flag = false;
447 break;
448 }
449 }
451 for (
int m = 1;
m <= 3;
m++)
452 {
454 {
456 break;
457 }
458 }
459 if (!
WorldGen.remixWorldGen || !((
double)
num4 > Main.rockLayer + (
double)
WorldGen.genRand.Next(-1, 2)))
460 {
461 if (flag &&
WorldGen.genRand.Next(20) == 0)
462 {
464 }
465 else if (flag &&
WorldGen.genRand.Next(5) == 0)
466 {
468 }
470 {
472 }
473 else if (flag &&
WorldGen.genRand.Next(5) == 0)
474 {
476 }
477 }
478 }
479 }
480 }
References Terraria.WorldGen.genRand, Terraria.GameContent.Biomes.Desert.DesertDescription.Hive, Terraria.WorldGen.InWorld(), Terraria.WorldGen.PlaceTile(), Terraria.WorldGen.remixWorldGen, Terraria.Main.rockLayer, Terraria.WorldGen.SolidTile(), Terraria.Main.tile, Terraria.Tile.type, Microsoft.Xna.Framework.Rectangle.X, and Microsoft.Xna.Framework.Rectangle.Y.
Referenced by Terraria.GameContent.Biomes.Desert.DesertHive.Place().