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

◆ TryUsingDiggerCart()

void Terraria.Player.TryUsingDiggerCart ( )
inlineprivate

Definition at line 18536 of file Player.cs.

18537 {
18538 //IL_0067: Unknown result type (might be due to invalid IL or missing references)
18539 //IL_007e: Unknown result type (might be due to invalid IL or missing references)
18540 //IL_0083: Unknown result type (might be due to invalid IL or missing references)
18541 //IL_008a: Unknown result type (might be due to invalid IL or missing references)
18542 //IL_008f: Unknown result type (might be due to invalid IL or missing references)
18543 //IL_0090: Unknown result type (might be due to invalid IL or missing references)
18544 //IL_0091: Unknown result type (might be due to invalid IL or missing references)
18545 //IL_0092: Unknown result type (might be due to invalid IL or missing references)
18546 //IL_0097: Unknown result type (might be due to invalid IL or missing references)
18547 //IL_0098: Unknown result type (might be due to invalid IL or missing references)
18548 //IL_00ba: Unknown result type (might be due to invalid IL or missing references)
18549 //IL_00d7: Unknown result type (might be due to invalid IL or missing references)
18550 //IL_00dc: Unknown result type (might be due to invalid IL or missing references)
18551 //IL_00e3: Unknown result type (might be due to invalid IL or missing references)
18552 //IL_00e8: Unknown result type (might be due to invalid IL or missing references)
18553 //IL_00e9: Unknown result type (might be due to invalid IL or missing references)
18554 //IL_00ea: Unknown result type (might be due to invalid IL or missing references)
18555 //IL_00eb: Unknown result type (might be due to invalid IL or missing references)
18556 //IL_00f0: Unknown result type (might be due to invalid IL or missing references)
18557 //IL_0142: Unknown result type (might be due to invalid IL or missing references)
18558 if (whoAmI == Main.myPlayer && mount.Active && mount.Type == 39 && velocity.Y == 0f)
18559 {
18560 int num = 12;
18561 int num2 = 20;
18562 Vector2 vector = default(Vector2);
18563 ((Vector2)(ref vector))._002Ector(0f, gravDir * 10f);
18564 Vector2 trackWorldPosition = RotatedRelativePoint(base.Center + new Vector2((float)(num * direction), gravDir * (float)num2));
18566 Tile tileSafely = Framing.GetTileSafely(trackWorldPosition);
18567 if (!tileSafely.active() || tileSafely.type != 314)
18568 {
18569 trackWorldPosition = RotatedRelativePoint(base.Center + new Vector2((float)(num * direction) * 0.5f, gravDir * (float)num2));
18571 }
18572 int digDirectionY = controlDown.ToInt() - controlUp.ToInt();
18573 if (controlUp.ToInt() + controlDown.ToInt() + controlLeft.ToInt() + controlRight.ToInt() > 0)
18574 {
18576 }
18577 }
18578 }
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
bool Active
Definition Mount.cs:348
bool controlRight
Definition Player.cs:1896
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
Definition Player.cs:2323
Vector2 RotatedRelativePoint(Vector2 pos, bool reverseRotation=false, bool addGfxOffY=true)
Takes an input position and returns the position adjusted to the players visual rotation and offset....
Definition Player.cs:4740

References Terraria.Mount.Active, Terraria.Player.controlDown, Terraria.Player.controlLeft, Terraria.Player.controlRight, Terraria.Player.controlUp, Terraria.Entity.direction, Terraria.Framing.GetTileSafely(), Terraria.Player.gravDir, Terraria.GameContent.MinecartDiggerHelper.Instance, Terraria.Player.mount, Terraria.Main.myPlayer, Terraria.Player.RotatedRelativePoint(), Terraria.Mount.Type, Terraria.Entity.velocity, and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.HorizontalMovement().

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