mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
fixup remove condition parantheses
This commit is contained in:
parent
38df271376
commit
797663ff5a
@ -36,9 +36,9 @@ class FishEvent:
|
||||
|
||||
def _fishing_sleep(waittime, lower_limit_ms = 16, upper_limit_ms = 2500):
|
||||
reaction = 0.0
|
||||
if (FishEvent.jitter and (upper_limit_ms > lower_limit_ms)):
|
||||
if (FishEvent.jitter and upper_limit_ms > lower_limit_ms):
|
||||
reaction = float( random.randrange(lower_limit_ms, upper_limit_ms) )/1000.0
|
||||
max_wait_t = waittime+reaction if (waittime+reaction <= 2.5) else 2.5
|
||||
max_wait_t = waittime+reaction if waittime+reaction <= 2.5 else 2.5
|
||||
time.sleep(max_wait_t)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user