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

◆ UpdateBlacklistedTilesForGrappling()

void Terraria.Player.UpdateBlacklistedTilesForGrappling ( )
inline

Definition at line 6502 of file Player.cs.

6503 {
6504 //IL_0060: Unknown result type (might be due to invalid IL or missing references)
6505 //IL_0065: Unknown result type (might be due to invalid IL or missing references)
6506 //IL_006a: Unknown result type (might be due to invalid IL or missing references)
6507 //IL_0073: Unknown result type (might be due to invalid IL or missing references)
6508 //IL_007b: Unknown result type (might be due to invalid IL or missing references)
6509 //IL_0091: Unknown result type (might be due to invalid IL or missing references)
6510 //IL_0099: Unknown result type (might be due to invalid IL or missing references)
6511 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
6513 for (int i = 0; i < 1000; i++)
6514 {
6515 if (!Main.projectile[i].active || Main.projectile[i].owner != whoAmI || Main.projectile[i].aiStyle != 7 || Main.projectile[i].ai[0] != 2f)
6516 {
6517 continue;
6518 }
6519 Point point = Main.projectile[i].Center.ToTileCoordinates();
6520 for (int j = -1; j <= 1; j++)
6521 {
6522 for (int k = -1; k <= 1; k++)
6523 {
6524 if (!WorldGen.SolidTile(point.X + j, point.Y + k))
6525 {
6526 _blackListedTileCoordsForGrappling.Add(new Point(point.X + j, point.Y + k));
6527 }
6528 }
6529 }
6530 }
6531 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
HashSet< Point > _blackListedTileCoordsForGrappling
Definition Player.cs:3139
void ClearGrapplingBlacklist()
Definition Player.cs:6491

References Terraria.Player._blackListedTileCoordsForGrappling, Terraria.Player.ClearGrapplingBlacklist(), Terraria.Main.projectile, Terraria.WorldGen.SolidTile(), and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.QuickGrapple().

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