From 5372f480ead06374eb3352f2a47728da0d325d3d Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Fri, 3 Jul 2020 21:21:59 -0400 Subject: [PATCH] made a jump speed boost soft cap formula (commeted out) idk if we'll actually use it --- CalPlayer/CalamityPlayerMiscEffects.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index f17d62bf3e..aead4800e3 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3769,6 +3769,10 @@ namespace CalamityMod.CalPlayer if (player.endurance > 0f) player.endurance = 1f - (1f / (1f + player.endurance)); + // Very similar scaling to damage reduction. Ex. Frog Leg goes from 48% jump speed to 38% + //if (player.jumpSpeedBoost > 0f) + // player.jumpSpeedBoost = (1f - 1f / (1f + (player.jumpSpeedBoost / 10f))) * 10f + if (modPlayer.yharonLore && !CalamityWorld.defiled) { if (player.wingTimeMax < 50000)