Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
MushroomHouseBuilder.cs
Go to the documentation of this file.
4
6
8{
11 {
12 base.TileType = 190;
13 base.WallType = 74;
14 base.BeamType = 578;
15 base.PlatformStyle = 18;
16 base.DoorStyle = 6;
17 base.TableStyle = 27;
18 base.WorkbenchStyle = 7;
19 base.PianoStyle = 22;
20 base.BookcaseStyle = 24;
21 base.ChairStyle = 9;
22 base.ChestStyle = 32;
23 }
24
25 protected override void AgeRoom(Rectangle room)
26 {
27 WorldUtils.Gen(new Point(room.X, room.Y), new Shapes.Rectangle(room.Width, room.Height), Actions.Chain(new Modifiers.Dither(0.7), new Modifiers.Blotches(2, 0.5), new Modifiers.OnlyTiles(base.TileType), new Actions.SetTileKeepWall(70, setSelfFrames: true)));
28 WorldUtils.Gen(new Point(room.X + 1, room.Y), new Shapes.Rectangle(room.Width - 2, 1), Actions.Chain(new Modifiers.Dither(0.6), new Modifiers.OnlyTiles(70), new Modifiers.Offset(0, -1), new Modifiers.IsEmpty(), new Actions.SetTile(71)));
29 WorldUtils.Gen(new Point(room.X + 1, room.Y + room.Height - 1), new Shapes.Rectangle(room.Width - 2, 1), Actions.Chain(new Modifiers.Dither(0.6), new Modifiers.OnlyTiles(70), new Modifiers.Offset(0, -1), new Modifiers.IsEmpty(), new Actions.SetTile(71)));
30 WorldUtils.Gen(new Point(room.X, room.Y), new Shapes.Rectangle(room.Width, room.Height), Actions.Chain(new Modifiers.Dither(0.85), new Modifiers.Blotches(), new Actions.ClearWall()));
31 }
32}
static GenAction Chain(params GenAction[] actions)
Definition Actions.cs:470
static bool Gen(Point origin, GenShape shape, GenAction action)
Definition WorldUtils.cs:17