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

◆ DoPotionOfReturnReturnToOriginalUsePosition()

void Terraria.Player.DoPotionOfReturnReturnToOriginalUsePosition ( )
inline

Definition at line 36454 of file Player.cs.

36455 {
36456 //IL_0013: Unknown result type (might be due to invalid IL or missing references)
36457 //IL_0019: Unknown result type (might be due to invalid IL or missing references)
36458 //IL_0028: Unknown result type (might be due to invalid IL or missing references)
36459 //IL_002d: Unknown result type (might be due to invalid IL or missing references)
36460 //IL_0032: Unknown result type (might be due to invalid IL or missing references)
36461 //IL_0037: Unknown result type (might be due to invalid IL or missing references)
36462 //IL_003b: Unknown result type (might be due to invalid IL or missing references)
36463 //IL_0050: Unknown result type (might be due to invalid IL or missing references)
36464 //IL_0056: Unknown result type (might be due to invalid IL or missing references)
36466 {
36467 Vector2 newPos = PotionOfReturnOriginalUsePosition.Value + base.Size * new Vector2(-0.5f, -1f);
36468 int num = 8;
36470 NetMessage.SendData(65, -1, -1, null, 0, whoAmI, newPos.X, newPos.Y, num);
36473 }
36474 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
Vector2? PotionOfReturnHomePosition
Definition Player.cs:2632
Vector2? PotionOfReturnOriginalUsePosition
Definition Player.cs:2630
void Teleport(Vector2 newPos, int Style=0, int extraInfo=0)
Definition Player.cs:36320

References Terraria.Player.PotionOfReturnHomePosition, Terraria.Player.PotionOfReturnOriginalUsePosition, Terraria.NetMessage.SendData(), Terraria.Player.Teleport(), and Terraria.Entity.whoAmI.

Referenced by Terraria.GameContent.ObjectInteractions.PotionOfReturnGateInteractionChecker.PerformInteraction().

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