reset time for banks
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user