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

◆ PlaceTight()

static void Terraria.WorldGen.PlaceTight ( int x,
int y,
bool spiders = false )
inlinestatic

Definition at line 33110 of file WorldGen.cs.

33111 {
33112 if (Main.tile[x, y - 1] == null)
33113 {
33114 Main.tile[x, y - 1] = new Tile();
33115 }
33116 if (Main.tile[x, y] == null)
33117 {
33118 Main.tile[x, y] = new Tile();
33119 }
33120 if (Main.tile[x, y + 1] == null)
33121 {
33122 Main.tile[x, y + 1] = new Tile();
33123 }
33124 if (!Main.tile[x, y].shimmer())
33125 {
33126 PlaceUncheckedStalactite(x, y, genRand.Next(2) == 0, genRand.Next(3), spiders);
33127 if (Main.tile[x, y].type == 165)
33128 {
33129 CheckTight(x, y);
33130 }
33131 }
33132 }
static UnifiedRandom genRand
Definition WorldGen.cs:1215
static void CheckTight(int x, int j)
static void PlaceUncheckedStalactite(int x, int y, bool preferSmall, int variation, bool spiders)

References Terraria.DataStructures.Tile, and Terraria.Main.tile.

Referenced by Terraria.GameContent.Generation.ActionStalagtite.Apply(), Terraria.GameContent.Biomes.MarbleBiome.PlaceSlab(), and Terraria.WorldGen.Spread.Spider().