Skip to content

Commit

Permalink
Improve _update_swap comment
Browse files Browse the repository at this point in the history
  • Loading branch information
plbrault committed Jul 22, 2024
1 parent 7552517 commit 15d1e3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/game_objects/page.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 15d1e3b

Please sign in to comment.