Add: Bonus Event
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user