This commit is contained in:
Jonas Zeunert
2022-09-01 01:36:19 +02:00
parent 1c31a3b4ab
commit 72689233e5
2 changed files with 3 additions and 4 deletions

View File

@@ -83,6 +83,7 @@ class GameState:
random_group.toggleRandom(0.2) random_group.toggleRandom(0.2)
if not self.isIdle: if not self.isIdle:
return return
for lamps in all_cabinet_lamps: for lamps in all_cabinet_lamps:
for lamp in lamps.lamps: for lamp in lamps.lamps:
lamp.activate() lamp.activate()

View File

@@ -30,12 +30,10 @@ class StartGameEvent(Event):
if self.gameState.isStarted: if self.gameState.isStarted:
return return
if not self.gameState.isIdle:
return
super().trigger(target) super().trigger(target)
self.gameState.stopIdleLoop() if self.gameState.isIdle:
self.gameState.stopIdleLoop()
if self.timer is None: if self.timer is None:
PLAYER_LAMPS.deactivate() PLAYER_LAMPS.deactivate()