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

◆ RandHousePictureDesert()

static PaintingEntry Terraria.WorldGen.RandHousePictureDesert ( )
inlinestatic

Definition at line 28648 of file WorldGen.cs.

28649 {
28650 int num = genRand.Next(4);
28651 int num2 = 0;
28652 if (num <= 1)
28653 {
28654 num = 240;
28655 int maxValue = 6;
28656 num2 = 63 + genRand.Next(maxValue);
28657 }
28658 else if (num == 2)
28659 {
28660 num = 245;
28661 int maxValue2 = 2;
28662 num2 = 7 + genRand.Next(maxValue2);
28663 }
28664 else
28665 {
28666 num = 242;
28667 int maxValue3 = 6;
28668 num2 = 37 + genRand.Next(maxValue3);
28669 }
28670 PaintingEntry result = default(PaintingEntry);
28671 result.tileType = num;
28672 result.style = num2;
28673 return result;
28674 }
static UnifiedRandom genRand
Definition WorldGen.cs:1215

Referenced by Terraria.GameContent.Biomes.CaveHouse.HouseBuilder.FillRooms().