Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DesertHouseBuilder.cs
Go to the documentation of this file.
5
7
9{
11 : base(HouseType.Desert, rooms)
12 {
13 base.TileType = 396;
14 base.WallType = 187;
15 base.BeamType = 577;
16 base.PlatformStyle = 42;
17 base.DoorStyle = 43;
18 base.TableStyle = 7;
19 base.UsesTables2 = true;
20 base.WorkbenchStyle = 39;
21 base.PianoStyle = 38;
22 base.BookcaseStyle = 39;
23 base.ChairStyle = 43;
24 base.ChestStyle = 10;
25 base.UsesContainers2 = true;
26 }
27
28 protected override void AgeRoom(Rectangle room)
29 {
30 WorldUtils.Gen(new Point(room.X, room.Y), new Shapes.Rectangle(room.Width, room.Height), Actions.Chain(new Modifiers.Dither(0.8), new Modifiers.Blotches(2, 0.2), new Modifiers.OnlyTiles(base.TileType), new Actions.SetTileKeepWall(396, setSelfFrames: true), new Modifiers.Dither(), new Actions.SetTileKeepWall(397, setSelfFrames: true)));
31 WorldUtils.Gen(new Point(room.X + 1, room.Y), new Shapes.Rectangle(room.Width - 2, 1), Actions.Chain(new Modifiers.Dither(), new Modifiers.OnlyTiles(397, 396), new Modifiers.Offset(0, 1), new ActionStalagtite()));
32 WorldUtils.Gen(new Point(room.X + 1, room.Y + room.Height - 1), new Shapes.Rectangle(room.Width - 2, 1), Actions.Chain(new Modifiers.Dither(), new Modifiers.OnlyTiles(397, 396), new Modifiers.Offset(0, 1), new ActionStalagtite()));
33 WorldUtils.Gen(new Point(room.X, room.Y), new Shapes.Rectangle(room.Width, room.Height), Actions.Chain(new Modifiers.Dither(0.8), new Modifiers.Blotches(), new Modifiers.OnlyWalls(base.WallType), new Actions.PlaceWall(216)));
34 }
35}
static GenAction Chain(params GenAction[] actions)
Definition Actions.cs:470
static bool Gen(Point origin, GenShape shape, GenAction action)
Definition WorldUtils.cs:17