add flag check to finish
This commit is contained in:
parent
d5f4f37780
commit
792b8905c2
|
@ -322,6 +322,7 @@ def game_loop():
|
||||||
except NoLevelFoundError as err:
|
except NoLevelFoundError as err:
|
||||||
print("Error encountered: {}".format(err))
|
print("Error encountered: {}".format(err))
|
||||||
elif command in ("f", "finish", "(f)inish"):
|
elif command in ("f", "finish", "(f)inish"):
|
||||||
|
if check_flag(game.level, flag_checker):
|
||||||
finish_game(game)
|
finish_game(game)
|
||||||
elif command in ("i", "info", "information", "(i)nfo", "(i)nformation"):
|
elif command in ("i", "info", "information", "(i)nfo", "(i)nformation"):
|
||||||
game.print_info()
|
game.print_info()
|
||||||
|
|
Reference in New Issue