Formatting
This commit is contained in:
parent
860b98f1a9
commit
362caee205
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
return None
|
||||
|
|
Reference in a new issue