public void UpdateJumpHeight()
{
if (this.mount.Active)
{
Player.jumpHeight = this.mount.JumpHeight(this.velocity.X);
Player.jumpSpeed = this.mount.JumpSpeed(this.velocity.X);
}
else
{
if (this.jumpBoost)
{
Player.jumpHeight = 20;
Player.jumpSpeed = 6.51f;
}
if (this.wereWolf)
{
Player.jumpHeight += 2;
Player.jumpSpeed += 0.2f;
}
Player.jumpSpeed += this.jumpSpeedBoost;
}
if (this.sticky)
{
Player.jumpHeight /= 10;
Player.jumpSpeed /= 5f;
}
if (!this.dazed)
return;
Player.jumpHeight /= 5;
Player.jumpSpeed /= 2f;
}