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

◆ randMoss()

static void Terraria.WorldGen.randMoss ( bool justNeon = false)
inlinestatic

Definition at line 5870 of file WorldGen.cs.

5871 {
5872 neonMossType = genRand.NextFromList(new ushort[4] { 539, 536, 534, 625 });
5873 if (!justNeon)
5874 {
5875 mossType[0] = genRand.Next(5);
5876 mossType[1] = genRand.Next(5);
5877 while (mossType[1] == mossType[0])
5878 {
5879 mossType[1] = genRand.Next(5);
5880 }
5881 mossType[2] = genRand.Next(5);
5882 while (mossType[2] == mossType[0] || mossType[2] == mossType[1])
5883 {
5884 mossType[2] = genRand.Next(5);
5885 }
5886 }
5887 }
static UnifiedRandom genRand
Definition WorldGen.cs:1215
static ushort neonMossType
Definition WorldGen.cs:1130
static int[] mossType
Definition WorldGen.cs:1128

References Terraria.WorldGen.genRand, Terraria.WorldGen.mossType, and Terraria.WorldGen.neonMossType.