From e00871324e74f362500db9bc07c169fa81c0fa07 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sun, 21 Apr 2024 13:21:00 -0400 Subject: [PATCH] Float fix --- src/engine/gameManager/CombatManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/gameManager/CombatManager.java b/src/engine/gameManager/CombatManager.java index a932179d..09f885a9 100644 --- a/src/engine/gameManager/CombatManager.java +++ b/src/engine/gameManager/CombatManager.java @@ -245,7 +245,7 @@ public enum CombatManager { int hitChance; if (def == 0) def = 1; - float dif = atr / def; + float dif = atr * 1f / def; if (dif <= 0.8f) hitChance = 4;