diff --git a/FTE/__main__.py b/FTE/__main__.py index fd33534..37f18b4 100644 --- a/FTE/__main__.py +++ b/FTE/__main__.py @@ -1,11 +1,10 @@ # -*- coding: utf-8 -*- -from os import getenv - from FTE.chapters import chapter_one from FTE.menus import main_menu +from FTE.settings import DEBUG if __name__ == '__main__': - if not bool(getenv('DEBUG', False)): + if not DEBUG: main_menu() chapter_one() diff --git a/FTE/settings.py b/FTE/settings.py index 1488c58..3990d57 100644 --- a/FTE/settings.py +++ b/FTE/settings.py @@ -2,4 +2,4 @@ from os import getenv -DEBUG: bool = bool(getenv('DEBUG', False)) +DEBUG: bool = bool(int(getenv('DEBUG', 0))) diff --git a/FTE/world.py b/FTE/world.py index 3351700..d17542b 100644 --- a/FTE/world.py +++ b/FTE/world.py @@ -203,6 +203,12 @@ def interaction(self) -> Character | Location | None: self._prefix() query = console.input('') except KeyboardInterrupt: + console.print(Text.assemble( + ' Retry...', + style=Style( + color='yellow', + italic=True + ))) continue try: query.index(' ')