Fast fall only happens when airborne

This commit is contained in:
IbanPlay committed 2022-06-01 00:35:23 +02:00
1 parent 84e9bf2f5c
commit ee1a8d4fdd
1 file changed
+2 -1
+2 -1
View File
@@ -849,7 +849,8 @@ namespace CalamityMod.CalPlayer
bool notInLiquid = !Player.wet;
bool notOnRope = !Player.pulley && Player.ropeCount == 0;
bool notGrappling = Player.grappling[0] == -1;
if (holdingDown && Player.ControlsEnabled() && notInLiquid && notOnRope && notGrappling)
bool airborne = Player.velocity.Y != 0;
if (holdingDown && Player.ControlsEnabled() && notInLiquid && notOnRope && notGrappling && airborne)
{
Player.velocity.Y += Player.gravity * (BalancingConstants.HoldingDownGravityMultiplier - 1f);
if (Player.velocity.Y > Player.maxFallSpeed)