diff --git a/config.py b/config.py index 047cc00..30ab4f1 100644 --- a/config.py +++ b/config.py @@ -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 diff --git a/events/BankEvent.py b/events/BankEvent.py index a0cedf2..4d22a3d 100644 --- a/events/BankEvent.py +++ b/events/BankEvent.py @@ -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