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

◆ IsDungeon()

static bool Terraria.WorldGen.IsDungeon ( int x,
int y )
inlinestaticprivate

Definition at line 30923 of file WorldGen.cs.

30924 {
30925 if ((double)y < Main.worldSurface)
30926 {
30927 return false;
30928 }
30929 if (x < 0 || x > Main.maxTilesX)
30930 {
30931 return false;
30932 }
30933 if (Main.wallDungeon[Main.tile[x, y].wall])
30934 {
30935 return true;
30936 }
30937 return false;
30938 }

References Terraria.Main.maxTilesX, Terraria.Main.tile, Terraria.Main.wallDungeon, and Terraria.Main.worldSurface.