Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
GraniteHouseBuilder.cs
Go to the documentation of this file.
5
7
9{
12 {
13 base.TileType = 369;
14 base.WallType = 181;
15 base.BeamType = 576;
16 base.PlatformStyle = 28;
17 base.DoorStyle = 34;
18 base.TableStyle = 33;
19 base.WorkbenchStyle = 29;
20 base.PianoStyle = 28;
21 base.BookcaseStyle = 30;
22 base.ChairStyle = 34;
23 base.ChestStyle = 50;
24 }
25
26 protected override void AgeRoom(Rectangle room)
27 {
28 WorldUtils.Gen(new Point(room.X, room.Y), new Shapes.Rectangle(room.Width, room.Height), Actions.Chain(new Modifiers.Dither(0.6), new Modifiers.Blotches(2, 0.6), new Modifiers.OnlyTiles(base.TileType), new Actions.SetTileKeepWall(368, setSelfFrames: true)));
29 WorldUtils.Gen(new Point(room.X + 1, room.Y), new Shapes.Rectangle(room.Width - 2, 1), Actions.Chain(new Modifiers.Dither(0.8), new Modifiers.OnlyTiles(368), new Modifiers.Offset(0, 1), new ActionStalagtite()));
30 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.8), new Modifiers.OnlyTiles(368), new Modifiers.Offset(0, 1), new ActionStalagtite()));
31 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.PlaceWall(180)));
32 }
33}
static GenAction Chain(params GenAction[] actions)
Definition Actions.cs:470
static bool Gen(Point origin, GenShape shape, GenAction action)
Definition WorldUtils.cs:17