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

◆ PaintTheClouds()

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

Definition at line 17121 of file WorldGen.cs.

17122 {
17123 for (int i = 0; i < Main.maxTilesX; i++)
17124 {
17125 for (int j = 0; j < Main.maxTilesY; j++)
17126 {
17127 Tile tile = Main.tile[i, j];
17128 if (tile.active() && (tile.type == 189 || tile.type == 196 || tile.type == 460))
17129 {
17130 tile.color(tilePaintColor);
17131 }
17132 if (tile.wall == 73)
17133 {
17134 tile.wallColor(wallPaintColor);
17135 }
17136 }
17137 }
17138 }

References Terraria.Tile.active(), Terraria.Tile.color(), Terraria.Main.maxTilesX, Terraria.Main.maxTilesY, Terraria.Main.tile, Terraria.Tile.type, Terraria.Tile.wall, and Terraria.Tile.wallColor().