From 4c676b7270f8e930f1542aff151bb0d71e86f7ab Mon Sep 17 00:00:00 2001 From: Jonas Zeunert Date: Sun, 7 Mar 2021 17:43:04 +0100 Subject: [PATCH] int --- PlayerState.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PlayerState.py b/PlayerState.py index 691b806..ccfc9c7 100644 --- a/PlayerState.py +++ b/PlayerState.py @@ -74,8 +74,8 @@ class PlayerState: self.timeAdvanceLeftTimer = time.Timer(activationTime, self.timeAdvanceLeft) 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.enableAdvanceTimeRight()