This commit is contained in:
Jonas Zeunert
2021-03-07 17:42:27 +01:00
parent 4b9c05a586
commit c8424a9d53

View File

@@ -74,8 +74,8 @@ class PlayerState:
self.timeAdvanceLeftTimer = time.Timer(activationTime, self.timeAdvanceLeft) self.timeAdvanceLeftTimer = time.Timer(activationTime, self.timeAdvanceLeft)
def timeAdvanceLeft(self): def timeAdvanceLeft(self):
choiceList = [True] * config.BONUS_TIME_ACTIVATION_PROBABILITY * 100 \ choiceList = [True] * (config.BONUS_TIME_ACTIVATION_PROBABILITY * 100) \
+ [False] * (1 - config.BONUS_TIME_ACTIVATION_PROBABILITY) * 100 + [False] * ((1 - config.BONUS_TIME_ACTIVATION_PROBABILITY) * 100)
if random.choice(choiceList): if random.choice(choiceList):
self.enableAdvanceTimeRight() self.enableAdvanceTimeRight()