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

◆ randGemTile()

static ushort Terraria.WorldGen.randGemTile ( )
inlinestatic

Definition at line 5853 of file WorldGen.cs.

5854 {
5855 if (genRand.Next(20) != 0)
5856 {
5857 return 1;
5858 }
5859 return (ushort)randGem() switch
5860 {
5861 0 => 67,
5862 1 => 66,
5863 2 => 63,
5864 3 => 65,
5865 4 => 64,
5866 _ => 68,
5867 };
5868 }
static UnifiedRandom genRand
Definition WorldGen.cs:1215
static int randGem()
Definition WorldGen.cs:5843

References Terraria.WorldGen.genRand, and Terraria.WorldGen.randGem().

Referenced by Terraria.WorldGen.Spread.Gem().