This commit is contained in:
Jonas Zeunert
2022-09-03 14:22:29 +02:00
parent e418fc3b9b
commit 93b5cf3465
11 changed files with 29 additions and 1 deletions

View File

@@ -16,6 +16,8 @@ from lamps.LampGroup import BONUS_MULTIPLIER_LAMPS
from lamps.LampGroup import BONUS_LAMPS
from lamps.LampGroup import PLAYER_LAMPS
from Sound import Sound
from events.LeaveUpperPlayfieldEvent import LeaveUpperPlayfieldEvent
from solenoids.BottomLeftBankSolenoid import BottomLeftBankSolenoid
from solenoids.BottomRightBankSolenoid import BottomRightBankSolenoid
@@ -227,15 +229,22 @@ class PlayerState:
self.orangeSpecialLit = self.orangeSpecialRight and self.orangeSpecialLeft
if self.orangeSpecialLit:
Sound(21).play()
time.sleep(0.7)
Sound(20).play()
Lamp("Special Orange").activate()
def advanceRedSpecial(self):
if not self.isActive:
return
self.redSpecial += 1
CHAMP_LAMPS.activateNext()
if self.redSpecial == config.RED_SPECIAL_TIMES:
Sound(21).play()
time.sleep(0.7)
Sound(20).play()
self.redSpecialLit = True
Lamp("Special Red").activate()