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

◆ randMoss()

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

Definition at line 6535 of file WorldGen.cs.

6536 {
6537 neonMossType = genRand.NextFromList(new ushort[4] { 539, 536, 534, 625 });
6538 if (!justNeon)
6539 {
6540 mossType[0] = genRand.Next(5);
6541 mossType[1] = genRand.Next(5);
6542 while (mossType[1] == mossType[0])
6543 {
6544 mossType[1] = genRand.Next(5);
6545 }
6546 mossType[2] = genRand.Next(5);
6547 while (mossType[2] == mossType[0] || mossType[2] == mossType[1])
6548 {
6549 mossType[2] = genRand.Next(5);
6550 }
6551 }
6552 }
static UnifiedRandom genRand
Definition WorldGen.cs:1455
static ushort neonMossType
Definition WorldGen.cs:1368
static int[] mossType
Definition WorldGen.cs:1366

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