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

◆ AgeRoom()

override void Terraria.GameContent.Biomes.CaveHouse.WoodHouseBuilder.AgeRoom ( Rectangle room)
inlineprotectedvirtual

Reimplemented from Terraria.GameContent.Biomes.CaveHouse.HouseBuilder.

Definition at line 41 of file WoodHouseBuilder.cs.

42 {
43 for (int i = 0; i < room.Width * room.Height / 16; i++)
44 {
45 int x = WorldGen.genRand.Next(1, room.Width - 1) + room.X;
46 int y = WorldGen.genRand.Next(1, room.Height - 1) + room.Y;
48 }
49 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 Modifiers.OnlyWalls(base.WallType), new Modifiers.SkipTiles(SkipTilesDuringWallAging), ((double)room.Y > Main.worldSurface) ? ((GenAction)new Actions.ClearWall(frameNeighbors: true)) : ((GenAction)new Actions.PlaceWall(2))));
50 WorldUtils.Gen(new Point(room.X, room.Y), new Shapes.Rectangle(room.Width, room.Height), Actions.Chain(new Modifiers.Dither(0.95), new Modifiers.OnlyTiles(30, 321, 158), new Actions.ClearTile(frameNeighbors: true)));
51 }
static GenAction Chain(params GenAction[] actions)
Definition Actions.cs:470
static bool Gen(Point origin, GenShape shape, GenAction action)
Definition WorldUtils.cs:17

References Terraria.WorldBuilding.Actions.Chain(), Terraria.WorldBuilding.WorldUtils.Gen(), Terraria.WorldGen.genRand, Terraria.GameContent.Biomes.CaveHouse.HouseBuilder.SkipTilesDuringWallAging, and Terraria.Main.worldSurface.