upper playfield timer
This commit is contained in:
@@ -316,7 +316,7 @@ class PlayerState:
|
|||||||
|
|
||||||
def startUpperPlayfieldTimer(self):
|
def startUpperPlayfieldTimer(self):
|
||||||
logging.info("Started Upper Playfield Timer")
|
logging.info("Started Upper Playfield Timer")
|
||||||
self.upperPlayfieldTimer = Timer(1, self.updatePlayfieldTime)
|
self.upperPlayfieldTimer = Timer(interval=5, function=self.updatePlayfieldTime)
|
||||||
self.upperPlayfieldTimer.start()
|
self.upperPlayfieldTimer.start()
|
||||||
|
|
||||||
def updatePlayfieldTime(self):
|
def updatePlayfieldTime(self):
|
||||||
@@ -329,8 +329,8 @@ class PlayerState:
|
|||||||
if self.upperPlayfieldTime in [0, 5, 10, 20]:
|
if self.upperPlayfieldTime in [0, 5, 10, 20]:
|
||||||
UPPER_PLAYFIELD_TIME_LAMPS.deactivateCurrent()
|
UPPER_PLAYFIELD_TIME_LAMPS.deactivateCurrent()
|
||||||
|
|
||||||
self.upperPlayfieldTime -= 1
|
self.upperPlayfieldTime -= 5
|
||||||
self.upperPlayfieldTimer = Timer(1, self.updatePlayfieldTime)
|
logging.info("Playfield time left: " + str(self.upperPlayfieldTime))
|
||||||
|
|
||||||
def addBonusTimeSecond(self):
|
def addBonusTimeSecond(self):
|
||||||
if not self.isActive:
|
if not self.isActive:
|
||||||
|
|||||||
Reference in New Issue
Block a user