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

◆ WoodHouseBuilder()

Terraria.GameContent.Biomes.CaveHouse.WoodHouseBuilder.WoodHouseBuilder ( IEnumerable< Rectangle > rooms)
inline

Definition at line 9 of file WoodHouseBuilder.cs.

10 : base(HouseType.Wood, rooms)
11 {
12 base.TileType = 30;
13 base.WallType = 27;
14 base.BeamType = 124;
15 if (Main.tenthAnniversaryWorld)
16 {
17 if (Main.getGoodWorld)
18 {
19 if (WorldGen.genRand.Next(7) == 0)
20 {
21 base.TileType = 160;
22 base.WallType = 44;
23 }
24 }
25 else if (WorldGen.genRand.Next(2) == 0)
26 {
27 base.TileType = 160;
28 base.WallType = 44;
29 }
30 }
31 base.PlatformStyle = 0;
32 base.DoorStyle = 0;
33 base.TableStyle = 0;
34 base.WorkbenchStyle = 0;
35 base.PianoStyle = 0;
36 base.BookcaseStyle = 0;
37 base.ChairStyle = 0;
38 base.ChestStyle = 1;
39 }

References Terraria.WorldGen.genRand, Terraria.Main.getGoodWorld, and Terraria.Main.tenthAnniversaryWorld.