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

◆ TryLandingOnDetonator()

void Terraria.Player.TryLandingOnDetonator ( )
inlineprivate

Definition at line 33477 of file Player.cs.

33478 {
33479 //IL_0026: Unknown result type (might be due to invalid IL or missing references)
33480 //IL_0035: Unknown result type (might be due to invalid IL or missing references)
33481 //IL_003a: Unknown result type (might be due to invalid IL or missing references)
33482 //IL_003f: Unknown result type (might be due to invalid IL or missing references)
33483 //IL_0044: Unknown result type (might be due to invalid IL or missing references)
33484 //IL_0045: Unknown result type (might be due to invalid IL or missing references)
33485 //IL_004b: Unknown result type (might be due to invalid IL or missing references)
33486 //IL_0085: Unknown result type (might be due to invalid IL or missing references)
33487 //IL_008b: Unknown result type (might be due to invalid IL or missing references)
33488 //IL_009b: Unknown result type (might be due to invalid IL or missing references)
33489 //IL_00a1: Unknown result type (might be due to invalid IL or missing references)
33490 if (whoAmI == Main.myPlayer && velocity.Y >= 3f)
33491 {
33492 Point point = (base.Bottom + new Vector2(0f, 0.01f)).ToTileCoordinates();
33493 Tile tileSafely = Framing.GetTileSafely(point.X, point.Y);
33494 if (tileSafely.active() && tileSafely.type == 411 && tileSafely.frameY == 0 && tileSafely.frameX < 36)
33495 {
33496 Wiring.HitSwitch(point.X, point.Y);
33497 NetMessage.SendData(59, -1, -1, null, point.X, point.Y);
33498 }
33499 }
33500 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
Vector2 velocity
The velocity of this Entity in world coordinates per tick.
Definition Entity.cs:33

References Terraria.Framing.GetTileSafely(), Terraria.Wiring.HitSwitch(), Terraria.Main.myPlayer, Terraria.NetMessage.SendData(), Terraria.Entity.velocity, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.DryCollision(), and Terraria.Player.Update().

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