Fast fall only happens when airborne
This commit is contained in:
1 parent
84e9bf2f5c
commit
ee1a8d4fdd
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user