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

◆ AI_007_GrapplingHooks_CanTileBeLatchedOnTo()

bool Terraria.Projectile.AI_007_GrapplingHooks_CanTileBeLatchedOnTo ( int x,
int y )
inlineprivate

Definition at line 55744 of file Projectile.cs.

55745 {
55746 Tile theTile = Main.tile[x, y];
55747 bool vanilla = Main.tileSolid[theTile.type] | (theTile.type == 314) | (type == 865 && TileID.Sets.IsATreeTrunk[theTile.type]) | (type == 865 && theTile.type == 323);
55748 vanilla &= theTile.nactive();
55749 return ProjectileLoader.GrappleCanLatchOnTo(this, Main.player[owner], x, y) ?? vanilla;
55750 }
static bool[] IsATreeTrunk
If true for a given tile type (P:Terraria.Tile.TileType), then that tile is categorized as a tree tru...
Definition TileID.cs:114
static ? bool GrappleCanLatchOnTo(Projectile projectile, Player player, int x, int y)
This serves as the central class from which projectile-related functions are carried out....
int owner
The index of the player who owns this projectile. In Multiplayer, Clients "own" projectiles that they...
int type
The Projectile ID of this projectile. The Projectile ID is a unique number assigned to each Projectil...

References Terraria.ModLoader.ProjectileLoader.GrappleCanLatchOnTo(), Terraria.ID.TileID.Sets.IsATreeTrunk, Terraria.Main.player, Terraria.Main.tile, and Terraria.Main.tileSolid.

+ Here is the call graph for this function: