From 49b14124ba1a839d940a9fbe217fcd2907dc86a3 Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Sun, 7 Mar 2021 17:45:11 +0100 Subject: [PATCH] afdfdsa --- PlayerState.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PlayerState.py b/PlayerState.py index 8c00458..581998b 100644 --- a/PlayerState.py +++ b/PlayerState.py @@ -62,8 +62,8 @@ class PlayerState: self.enableAdvanceTimeRight() def timeAdvanceLeft(self): - choiceList = [True] * config.BONUS_TIME_ACTIVATION_PROBABILITY * 100 \ - + [False] * (1 - config.BONUS_TIME_ACTIVATION_PROBABILITY) * 100 + choiceList = [True] * int(config.BONUS_TIME_ACTIVATION_PROBABILITY * 100) \ + + [False] * int((1 - config.BONUS_TIME_ACTIVATION_PROBABILITY) * 100) if random.choice(choiceList): self.enableAdvanceTimeLeft()