reset time for banks

This commit is contained in:
Jonas Zeunert
2022-06-07 00:58:43 +02:00
parent f3ed0db12a
commit e422a62445
2 changed files with 4 additions and 1 deletions

View File

@@ -28,3 +28,4 @@ ORANGE_SPECIAL_BANK = ORANGE_SPECIAL_BANK_OPTIONS["BOTH"]
WAIT_TIME_TO_RESET_SECONDS = 0.15
MAX_NETWORK_RETRIES = 10
NETWORK_SLEEP_TIME_SECONDS = 0.1
BANK_SLEEP_TIME = 0.1

View File

@@ -1,5 +1,6 @@
from Event import Event
from time import sleep
from config import BANK_SLEEP_TIME
class BankEvent(Event):
def __init__(self, bankSolenoid, name, gameState):
@@ -10,3 +11,4 @@ class BankEvent(Event):
def trigger(self, target):
super().trigger(target)
self.bankSolenoid.trigger()
sleep(BANK_SLEEP_TIME) # Wait for bank to reset before resetting targets