diff --git a/CelesteDash/CelesteDash.cs b/CelesteDash/CelesteDash.cs index 86eb0a1..282b212 100644 --- a/CelesteDash/CelesteDash.cs +++ b/CelesteDash/CelesteDash.cs @@ -229,6 +229,10 @@ private bool CanDash8Dir(On.HeroController.orig_CanDash orig, HeroController sel } ///TODO: charm 16 maxDashSpeed = HeroControllerR.DASH_SPEED; + if ((HeroControllerR.playerData.GetBool("equippedCharm_16"))) + { + maxDashSpeed = HeroControllerR.DASH_SPEED_SHARP; + } float dashSpeedx = Math.Max(maxDashSpeed, Math.Abs(HeroControllerR.current_velocity.x)); float dashSpeedy = maxDashSpeed; if ((dashDir.y < -0.001f)) //&& (maxDashSpeed < Math.Abs(HeroControllerR.current_velocity.x))) @@ -257,7 +261,7 @@ private bool CanJumpNoDash(On.HeroController.orig_CanJump orig, HeroController s lastVel.x = maxDashSpeed * Math.Sign(dashDir.x) * 1.2f; lastVel.y = 0f; inHyper = true; - } else if ((dashDir.y < -0.001f) && (Math.Abs(lastVel.x > maxDashSpeed - 0.001f)) /// intended ultra + } else if ((dashDir.y < -0.001f) && (Math.Abs(lastVel.x) > maxDashSpeed - 0.001f)) /// intended ultra { lastVel.x = lastVel.x * 1.2f; lastVel.y = 0f;