From 77fda6a18c4b74fe11e6705825f2f583026d24bf Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Sun, 17 Mar 2024 16:04:30 -0500 Subject: [PATCH] altered atr vs def formula --- src/engine/gameManager/CombatManager.java | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index 656a6b52..72c0282a 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -645,16 +645,7 @@ public enum CombatManager { errorTrack = 4; //Get hit chance - - int chance; - float dif = atr - defense; - - if (dif > 100) - chance = 94; - else if (dif < -100) - chance = 4; - else - chance = (int) ((0.45 * dif) + 49); + int chance = (int)((atr-((atr+defense)*0.33f))/((defense-((atr+defense)*0.33f))+(atr-((atr+defense)*0.33f)))) * 100; errorTrack = 5;