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

◆ paintCoatWall()

static bool Terraria.WorldGen.paintCoatWall ( int x,
int y,
byte paintCoatId,
bool broadcast = false )
inlinestatic

Definition at line 36960 of file WorldGen.cs.

36961 {
36962 Tile tile = Main.tile[x, y];
36963 if (tile == null || tile.wall == 0)
36964 {
36965 return false;
36966 }
36968 switch (paintCoatId)
36969 {
36970 default:
36971 return false;
36972 case 0:
36973 if (!tile.fullbrightWall() && !tile.invisibleWall())
36974 {
36975 return false;
36976 }
36977 tile.fullbrightWall(fullbrightWall: false);
36978 tile.invisibleWall(invisibleWall: false);
36980 break;
36981 case 1:
36982 if (tile.fullbrightWall())
36983 {
36984 return false;
36985 }
36986 tile.fullbrightWall(fullbrightWall: true);
36987 break;
36988 case 2:
36989 if (tile.invisibleWall())
36990 {
36991 return false;
36992 }
36993 tile.invisibleWall(invisibleWall: true);
36995 break;
36996 }
36997 if (broadcast)
36998 {
36999 NetMessage.SendData(64, -1, -1, null, x, y, (int)paintCoatId, 1f);
37000 }
37002 return true;
37003 }
static void SquareWallFrame(int i, int j, bool resetFrame=true)
static void paintCoatEffect(int x, int y, byte paintCoatId, List< Color > oldColors)
static List< Color > coatingColors(Tile tile, bool block)

References Terraria.Tile.fullbrightWall(), Terraria.Tile.invisibleWall(), Terraria.NetMessage.SendData(), Terraria.Main.tile, and Terraria.Tile.wall.

Referenced by Terraria.Player.ApplyCoating(), Terraria.MessageBuffer.GetData(), and Terraria.Player.PlaceThing_PaintScrapper_TryScrapping().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: