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

◆ ItemCheck_HandleMount()

void Terraria.Player.ItemCheck_HandleMount ( )
inlineprivate

Definition at line 53496 of file Player.cs.

53497 {
53498 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
53499 //IL_0084: Unknown result type (might be due to invalid IL or missing references)
53500 if (!mount.Active)
53501 {
53502 return;
53503 }
53504 MountLoader.UseAbility(this, Vector2.Zero, toggleOn: false);
53505 if (whoAmI == Main.myPlayer && gravDir == -1f)
53506 {
53507 mount.Dismount(this);
53508 }
53509 else
53510 {
53511 if (mount.Type != 8)
53512 {
53513 return;
53514 }
53515 noItems = true;
53517 {
53520 {
53521 mount.UseAbility(this, Vector2.Zero, toggleOn: true);
53522 }
53523 releaseUseItem = false;
53524 releaseUseTile = false;
53525 }
53526 }
53527 }
int whoAmI
The index of this Entity within its specific array. These arrays track the entities in the world....
Definition Entity.cs:16
static void UseAbility(Player player, Vector2 mousePosition, bool toggleOn)
Allows you to make things happen while the mouse is pressed while the mount is active....
This serves as the central place from which mounts are stored and mount-related functions are carried...
void UseAbility(Player mountedPlayer, Vector2 mousePosition, bool toggleOn)
Definition Mount.cs:2819
void Dismount(Player mountedPlayer)
Definition Mount.cs:6357
bool Active
Definition Mount.cs:348
bool releaseUseTile
Definition Player.cs:1928
bool releaseUseItem
Definition Player.cs:1926
void StartChanneling()
Definition Player.cs:53529
Mount mount
This player's T:Terraria.Mount. Do not overwrite this value. Instead, call M:Terraria....
Definition Player.cs:2323
bool controlUseTile
Definition Player.cs:1906
bool controlUseItem
Definition Player.cs:1904

References Terraria.Mount.Active, Terraria.Player.controlUseItem, Terraria.Player.controlUseTile, Terraria.Mount.Dismount(), Terraria.Player.gravDir, Terraria.Player.mount, Terraria.Main.myPlayer, Terraria.Player.noItems, Terraria.Player.releaseUseItem, Terraria.Player.releaseUseTile, Terraria.Player.StartChanneling(), Terraria.Mount.Type, Terraria.Mount.UseAbility(), Terraria.ModLoader.MountLoader.UseAbility(), and Terraria.Entity.whoAmI.

Referenced by Terraria.Player.ItemCheck_Inner().

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