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

◆ UpdateJumpHeight()

void Terraria.Player.UpdateJumpHeight ( )
inline

Definition at line 18993 of file Player.cs.

18994 {
18995 if (mount.Active)
18996 {
18999 }
19000 else
19001 {
19002 if (jumpBoost)
19003 {
19004 jumpHeight = 20;
19005 jumpSpeed = 6.51f;
19006 }
19007 if (empressBrooch)
19008 {
19009 jumpSpeedBoost += 1.8f;
19010 }
19011 if (frogLegJumpBoost)
19012 {
19013 jumpSpeedBoost += 2.4f;
19014 extraFall += 15;
19015 }
19016 if (moonLordLegs)
19017 {
19018 jumpSpeedBoost += 1.8f;
19019 extraFall += 10;
19020 jumpHeight++;
19021 }
19022 if (wereWolf)
19023 {
19024 jumpHeight += 2;
19025 jumpSpeed += 0.2f;
19026 }
19028 {
19029 jumpHeight += 5;
19030 }
19032 }
19033 if (sticky)
19034 {
19035 jumpHeight /= 10;
19036 jumpSpeed /= 5f;
19037 }
19038 if (dazed)
19039 {
19040 jumpHeight /= 5;
19041 jumpSpeed /= 2f;
19042 }
19043 }
Vector2 velocity
Definition Entity.cs:16
float JumpSpeed(float xVelocity)
Definition Mount.cs:2347
bool Active
Definition Mount.cs:345
int JumpHeight(float xVelocity)
Definition Mount.cs:2321
bool moonLordLegs
Definition Player.cs:1713
bool empressBrooch
Definition Player.cs:1621
bool frogLegJumpBoost
Definition Player.cs:2297
static float jumpSpeed
Definition Player.cs:2091
PortableStoolUsage portableStoolInfo
Definition Player.cs:1071
float jumpSpeedBoost
Definition Player.cs:2289
static int jumpHeight
Definition Player.cs:2089

References Terraria.DataStructures.PortableStoolUsage.IsInUse.