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

◆ TileIsDangerous()

static bool Terraria.GameContent.TeleportHelpers.TileIsDangerous ( int x,
int y )
inlinestaticprivate

Definition at line 125 of file TeleportHelpers.cs.

126 {
127 Tile tile = Main.tile[x, y];
128 if (tile.liquid > 0 && tile.lava())
129 {
130 return true;
131 }
132 if (tile.wall == 87 && (double)y > Main.worldSurface && !NPC.downedPlantBoss)
133 {
134 return true;
135 }
136 if (Main.wallDungeon[tile.wall] && (double)y > Main.worldSurface && !NPC.downedBoss3)
137 {
138 return true;
139 }
140 return false;
141 }

References Terraria.NPC.downedBoss3, Terraria.NPC.downedPlantBoss, Terraria.Tile.lava(), Terraria.Tile.liquid, Terraria.Main.tile, Terraria.Tile.wall, Terraria.Main.wallDungeon, and Terraria.Main.worldSurface.

Referenced by Terraria.GameContent.TeleportHelpers.RequestMagicConchTeleportPosition().

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