From d2ac78bb5dec94052f3256388e218536a97ea61e Mon Sep 17 00:00:00 2001 From: TheTaques <35156969+TheTaques@users.noreply.github.com> Date: Tue, 24 Aug 2021 14:40:18 +0200 Subject: [PATCH] Fix broad_challenge calculation --- bonemarketsolver/challenge_functions.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bonemarketsolver/challenge_functions.py b/bonemarketsolver/challenge_functions.py index 688b29d..cb025ce 100644 --- a/bonemarketsolver/challenge_functions.py +++ b/bonemarketsolver/challenge_functions.py @@ -13,7 +13,9 @@ def narrow_challenge(difficulty_level: int, stat: int): return stat/10 def broad_challenge(difficulty_level: int, stat: int): - chance = DIFFICULTY_SCALER*stat//difficulty_level + chance = DIFFICULTY_SCALER*stat/difficulty_level * 100 + chance = chance // 1 + chance /= 100 return chance