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

◆ gemCave()

static void Terraria.WorldGen.gemCave ( int x,
int y )
inlinestatic

Definition at line 5825 of file WorldGen.cs.

5826 {
5827 countTiles(x, y);
5828 for (int i = 0; i < 6; i++)
5829 {
5830 gem[i] = false;
5831 }
5832 gem[genRand.Next(6)] = true;
5833 for (int j = 0; j < 6; j++)
5834 {
5835 if (genRand.Next(6) == 0)
5836 {
5837 gem[j] = true;
5838 }
5839 }
5840 Spread.Gem(x, y);
5841 }
static UnifiedRandom genRand
Definition WorldGen.cs:1215
static bool[] gem
Definition WorldGen.cs:1126
static int countTiles(int x, int y, bool jungle=false, bool lavaOk=false)
Definition WorldGen.cs:5679

References Terraria.WorldGen.countTiles(), Terraria.WorldGen.Spread.Gem(), Terraria.WorldGen.gem, and Terraria.WorldGen.genRand.