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

◆ PaintTheTemple()

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

Definition at line 17086 of file WorldGen.cs.

17087 {
17088 for (int i = 0; i < Main.maxTilesX; i++)
17089 {
17090 for (int j = 0; j < Main.maxTilesY; j++)
17091 {
17092 Tile tile = Main.tile[i, j];
17093 if (tile.active())
17094 {
17095 bool flag = false;
17096 if (tile.type == 226)
17097 {
17098 flag = true;
17099 }
17100 if (tile.type == 137)
17101 {
17102 int num = tile.frameY / 18;
17103 if (num >= 1 && num <= 4)
17104 {
17105 flag = true;
17106 }
17107 }
17108 if (flag)
17109 {
17110 tile.color(tilePaintColor);
17111 }
17112 }
17113 if (tile.wall == 87)
17114 {
17115 tile.wallColor(wallPaintColor);
17116 }
17117 }
17118 }
17119 }

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().