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

◆ PaintTheDungeon()

static void Terraria.WorldGen.PaintTheDungeon ( byte tilePaintColor,
byte wallPaintColor )
inlinestaticprivate

Definition at line 17140 of file WorldGen.cs.

17141 {
17142 for (int i = 0; i < Main.maxTilesX; i++)
17143 {
17144 for (int j = 0; j < Main.maxTilesY; j++)
17145 {
17146 Tile tile = Main.tile[i, j];
17147 if (tile.active())
17148 {
17149 if (Main.tileDungeon[tile.type] || TileID.Sets.CrackedBricks[tile.type])
17150 {
17151 tile.color(tilePaintColor);
17152 }
17153 if (tile.type == 19)
17154 {
17155 int num = tile.frameY / 18;
17156 if (num >= 6 && num <= 12)
17157 {
17158 tile.color(tilePaintColor);
17159 }
17160 }
17161 }
17162 if (Main.wallDungeon[tile.wall])
17163 {
17164 tile.wallColor(wallPaintColor);
17165 }
17166 }
17167 }
17168 }
static bool[] CrackedBricks
Definition TileID.cs:113

References Terraria.Tile.active(), Terraria.Tile.color(), Terraria.ID.TileID.Sets.CrackedBricks, Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.tile, Terraria.Main.tileDungeon, Terraria.Tile.type, Terraria.Tile.wall, Terraria.Tile.wallColor(), and Terraria.Main.wallDungeon.