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

◆ RollRandomForestBGStyle()

static int Terraria.WorldGen.RollRandomForestBGStyle ( UnifiedRandom random)
inlinestaticprivate

Definition at line 4747 of file WorldGen.cs.

4748 {
4749 int num = random.Next(11);
4750 if ((num == 1 || num == 2) && random.Next(2) == 0)
4751 {
4752 num = random.Next(11);
4753 }
4754 if (num == 0)
4755 {
4756 num = random.Next(11);
4757 }
4758 if (num == 3 && random.Next(3) == 0)
4759 {
4760 num = 31;
4761 }
4762 if (num == 5 && random.Next(2) == 0)
4763 {
4764 num = 51;
4765 }
4766 if (num == 7 && random.Next(4) == 0)
4767 {
4768 num = random.Next(71, 74);
4769 }
4770 return num;
4771 }

References Terraria.Utilities.UnifiedRandom.Next().

Referenced by Terraria.WorldGen.RandomizeBackgroundBasedOnPlayer(), and Terraria.WorldGen.RandomizeBackgrounds().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: