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

◆ IsOpenDoorAnchorFrame()

static bool Terraria.WorldGen.IsOpenDoorAnchorFrame ( int x,
int y )
inlinestatic

Definition at line 59709 of file WorldGen.cs.

59710 {
59711 Tile tile = Main.tile[x, y];
59712 if (!tile.active() || tile.type != 11)
59713 {
59714 return false;
59715 }
59716 int num = tile.frameX % 72;
59717 if (num >= 18)
59718 {
59719 return num >= 54;
59720 }
59721 return true;
59722 }

References Terraria.Tile.active(), Terraria.Main.tile, and Terraria.Tile.type.

Referenced by Terraria.WorldGen.ScoreRoom(), and Terraria.GameContent.SmartCursorHelper.Step_Walls().