From 8a9633400cec64c648c4cfe70bd143362c5e05e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90inh=20Ho=C3=A0ng=20Vi=E1=BB=87t?= <134517889+M-DinhHoangViet@users.noreply.github.com> Date: Sat, 6 Jan 2024 22:08:44 +0700 Subject: [PATCH] Remove special treatment for multiplier < 5 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Đinh Hoàng Việt <134517889+M-DinhHoangViet@users.noreply.github.com> --- opponents.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/opponents.py b/opponents.py index f1b693b..1f36e91 100644 --- a/opponents.py +++ b/opponents.py @@ -106,10 +106,9 @@ def add_timeout(self, success: bool, game_duration: timedelta, matchmaking_type: elif not success: opponent_data.multiplier += 1 - opponent_multiplier = opponent_data.multiplier if opponent_data.multiplier >= 5 else 1 duration_ratio = game_duration / matchmaking_type.estimated_game_duration timeout = duration_ratio * matchmaking_type.estimated_game_duration + self.delay - timeout *= matchmaking_type.multiplier * opponent_multiplier + timeout *= matchmaking_type.multiplier * opponent_data.multiplier if opponent_data.release_time > datetime.now(): opponent_data.release_time += timeout