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

◆ IsRope()

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

Definition at line 60644 of file WorldGen.cs.

60645 {
60646 if (Main.tile[x, y] == null || !Main.tile[x, y].active())
60647 {
60648 return false;
60649 }
60650 if (Main.tileRope[Main.tile[x, y].type])
60651 {
60652 return true;
60653 }
60654 if ((Main.tile[x, y].type == 314 || TileID.Sets.Platforms[Main.tile[x, y].type]) && Main.tile[x, y - 1] != null && Main.tile[x, y + 1] != null && Main.tile[x, y - 1].active() && Main.tile[x, y + 1].active() && Main.tileRope[Main.tile[x, y - 1].type] && Main.tileRope[Main.tile[x, y + 1].type])
60655 {
60656 return true;
60657 }
60658 return false;
60659 }
static bool[] Platforms
Definition TileID.cs:163

References Terraria.ID.TileID.Sets.Platforms, Terraria.Main.tile, and Terraria.Main.tileRope.

Referenced by Terraria.GameContent.Drawing.TileDrawing.DrawBasicTile(), Terraria.GameContent.Drawing.TileDrawing.DrawTile_MinecartTrack(), Terraria.Player.FindPulley(), and Terraria.Player.Update().