1
0
Fork 0

add flag check to finish

This commit is contained in:
Lili (Tlapka) 2021-03-31 18:01:55 +02:00
parent d5f4f37780
commit 792b8905c2
1 changed files with 2 additions and 1 deletions

View File

@ -322,6 +322,7 @@ def game_loop():
except NoLevelFoundError as err:
print("Error encountered: {}".format(err))
elif command in ("f", "finish", "(f)inish"):
if check_flag(game.level, flag_checker):
finish_game(game)
elif command in ("i", "info", "information", "(i)nfo", "(i)nformation"):
game.print_info()