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

◆ PaintThePurityGrass()

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

Definition at line 18075 of file WorldGen.cs.

18076 {
18077 for (int i = 0; i < Main.maxTilesX; i++)
18078 {
18079 for (int j = 0; j < Main.maxTilesY; j++)
18080 {
18081 Tile tile = Main.tile[i, j];
18082 if (tile.active())
18083 {
18084 if (tile.type == 2)
18085 {
18086 tile.color(tilePaintColor);
18087 }
18088 else if (tile.type == 185 || tile.type == 186 || tile.type == 187)
18089 {
18090 Tile tile2 = tile;
18091 int num = j;
18092 while (num < Main.maxTilesY - 20 && (tile2.type == 185 || tile2.type == 186 || tile2.type == 187 || tile2.type == 3 || tile2.type == 73))
18093 {
18094 tile2 = Main.tile[i, ++num];
18095 }
18096 if (tile2.type == 2)
18097 {
18098 tile.color(tilePaintColor);
18099 }
18100 }
18101 }
18102 if (tile.wall == 66 || tile.wall == 63)
18103 {
18104 tile.wallColor(wallPaintColor);
18105 }
18106 }
18107 }
18108 }

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

+ Here is the call graph for this function: