From 8dce20e69fcd75335fe19114b194fc7b25f7dbb9 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sat, 7 Sep 2024 17:45:25 -0500 Subject: [PATCH] Revert "adjusted hit chance formula" This reverts commit 3428a06bb8a9916eca04009e91ab458696d89c9f. --- src/engine/gameManager/CombatManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 759bdd44..80e01442 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -1446,9 +1446,9 @@ public enum CombatManager { public static boolean LandHit(int atr, int defense){ int roll = ThreadLocalRandom.current().nextInt(101); - float chance = (atr-((atr+defense)*3.15f))/((defense-((atr+defense)*3.15f))+(atr-((atr+defense)*3.15f))); + float chance = (float)((atr-((atr+defense)*0.315))/((defense-((atr+defense)*0.315))+(atr-((atr+defense)*0.315)))); - int connvertedChance = (int)chance; + int connvertedChance = (int)(chance * 100); if(connvertedChance < 5) connvertedChance = 5;