From 8885c100a0780f6538207bb1df36ffd1529059e8 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Wed, 29 Jan 2020 18:25:41 -0500 Subject: [PATCH] fixed -101% dr translating to 10100% dr --- CalPlayer/CalamityPlayerMiscEffects.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 150cca9e21..7ffec72ad9 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -3087,7 +3087,8 @@ namespace CalamityMod.CalPlayer player.meleeSpeed = 0.5f; // 10% is converted to 9%, 25% is converted to 20%, 50% is converted to 33%, 75% is converted to 43%, 100% is converted to 50% - player.endurance = 1f - (1f / (1f + player.endurance)); + if (player.endurance > 0f) + player.endurance = 1f - (1f / (1f + player.endurance)); if (modPlayer.yharonLore && !CalamityWorld.defiled) {