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

◆ IsTileDangerous()

virtual ? bool Terraria.ModLoader.GlobalTile.IsTileDangerous ( int i,
int j,
int type,
Player player )
inlinevirtual

Allows you to determine whether this tile glows red when the given player has the Dangersense buff.
Return true to force this behavior, or false to prevent it, overriding vanilla conditions. Returns null by default.
This is only called on the local client.

Parameters
iThe x position in tile coordinates.
jThe y position in tile coordinates.
typeThe tile type
playerMain.LocalPlayer

Definition at line 111 of file GlobalTile.cs.

112 {
113 return null;
114 }