asdfwaef
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user