Add: Bonus Event

This commit is contained in:
Jonas Zeunert
2022-02-21 23:18:33 +01:00
parent 011ff20365
commit 05c26080ab
5 changed files with 58 additions and 6 deletions

View File

@@ -8,11 +8,13 @@ import config
from lamps.Lamp import Lamp
from lamps.LampGroup import CHAMP_LAMPS
from lamps.LampGroup import UPPER_PLAYFIELD_TIME_LAMPS
from lamps.LampGroup import TUNNEL_LAMPS
from lamps.LampGroup import BONUS_MULTIPLIER_LAMPS
from lamps.LampGroup import BONUS_LAMPS
from events.LeaveUpperPlayfieldEvent import LeaveUpperPlayfieldEvent
class PlayerState:
display = None
specialDisplay = None
@@ -136,6 +138,7 @@ class PlayerState:
def resetTunnel(self):
self.tunnelLit = 0
TUNNEL_LAMPS.deactivate()
def advanceRightOrangeSpecial(self):
self.orangeSpecialRight = True
@@ -163,8 +166,11 @@ class PlayerState:
Lamp("Special Red").activate()
def advanceTunnel(self):
if self.tunnelLit <= 5:
self.tunnelLit += 1
if self.tunnelLit >= 5:
return
self.tunnelLit += 1
TUNNEL_LAMPS.activateNext()
def advanceBonus(self):
if self.bonus >= 20: