From 362caee205a9b5c1e31f6854953f3540fb1005ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Caras?= Date: Wed, 4 May 2022 10:18:42 +0200 Subject: [PATCH] Formatting --- lib/game.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/game.py b/lib/game.py index 1844fde..cd156f0 100644 --- a/lib/game.py +++ b/lib/game.py @@ -150,13 +150,12 @@ class Game: # the game class keeps information about the loaded game sleep(5) self.current = self.nodes[self.current]["actions"][0] # move to the first action self.print_text() - return else: # Player defeated print(self.lang["defeat"].replace("$enemy",enemy["name"])) sleep(5) self.print_text() - return + return else: m = MenuManager(actions_desc,self.parse_colors(self.nodes[self.current]["text"])) sel = m.selected @@ -213,4 +212,4 @@ def load(file_path,lang): # starts to load the game from YAML except Exception as e: print(f"{Back.RED}{Fore.WHITE}ERROR{Fore.RESET}{Back.RESET}") print(e) - return None \ No newline at end of file + return None