From 797663ff5a23604af3084755d60abf9b3fe1c810 Mon Sep 17 00:00:00 2001 From: Semjon Kerner Date: Sun, 13 Dec 2020 21:04:45 +0100 Subject: [PATCH] fixup remove condition parantheses --- fishy/engine/semifisher/fishing_event.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fishy/engine/semifisher/fishing_event.py b/fishy/engine/semifisher/fishing_event.py index c297280..c566346 100644 --- a/fishy/engine/semifisher/fishing_event.py +++ b/fishy/engine/semifisher/fishing_event.py @@ -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)