Skip to content
This repository has been archived by the owner on Nov 22, 2024. It is now read-only.

Commit

Permalink
Merge pull request #7 from AnonymousX86/release-v0.2.2
Browse files Browse the repository at this point in the history
Release v0.2.2
  • Loading branch information
AnonymousX86 authored Nov 20, 2023
2 parents fce0915 + e50ff13 commit 3912578
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 2 additions & 3 deletions FTE/__main__.py
Original file line number Diff line number Diff line change
@@ -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()
2 changes: 1 addition & 1 deletion FTE/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from os import getenv


DEBUG: bool = bool(getenv('DEBUG', False))
DEBUG: bool = bool(int(getenv('DEBUG', 0)))
6 changes: 6 additions & 0 deletions FTE/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(' ')
Expand Down

0 comments on commit 3912578

Please sign in to comment.