From 15d1e3b61a94f9156d713a7b20a2da7facfe1281 Mon Sep 17 00:00:00 2001 From: Pier-Luc Brault Date: Mon, 22 Jul 2024 15:41:30 -0400 Subject: [PATCH] Improve _update_swap comment --- src/game_objects/page.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/game_objects/page.py b/src/game_objects/page.py index bf5de3b..ae33fbb 100644 --- a/src/game_objects/page.py +++ b/src/game_objects/page.py @@ -86,8 +86,8 @@ def start_swap(self, current_time: int): self._started_swap_at = current_time def _update_swap(self, current_time): - """This method is called at each update to perform necessary operations if a swap that was - in progress is now completed.""" + """This method is called at each update. If a swap is in progress, it performs + appropriate checks and operations.""" if self.swap_in_progress: self._swap_percentage_completed = min(1, (current_time - self._started_swap_at)