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

◆ UpdatePortableStoolUsage()

void Terraria.Player.UpdatePortableStoolUsage ( )
inlineprivate

Definition at line 27014 of file Player.cs.

27015 {
27016 bool flag = portableStoolInfo.HasAStool && controlUp && !gravControl && !mount.Active && velocity.X == 0f && velocity.Y == 0f && !pulley && grappling[0] == -1;
27017 if (flag)
27018 {
27020 }
27021 if (flag)
27022 {
27023 portableStoolInfo.IsInUse = true;
27024 ResizeHitbox();
27025 }
27026 }
PortableStoolUsage portableStoolInfo
Definition Player.cs:1546
int[] grappling
Definition Player.cs:2840
bool CanFitSpace(int heightBoost)
Definition Player.cs:6332
void ResizeHitbox()
Definition Player.cs:27028

References Terraria.Player.CanFitSpace(), Terraria.Player.controlUp, Terraria.Player.grappling, Terraria.Player.gravControl, Terraria.DataStructures.PortableStoolUsage.HeightBoost, Terraria.Player.portableStoolInfo, Terraria.Player.pulley, and Terraria.Player.ResizeHitbox().

Referenced by Terraria.Player.Update().

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