From d9a151f97beb5bf259d2f09937cda18e140cdcd1 Mon Sep 17 00:00:00 2001 From: Nick Walton Date: Mon, 25 Nov 2019 18:07:24 -0700 Subject: [PATCH] added revert --- play.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/play.py b/play.py index 07d59e2..522bff2 100644 --- a/play.py +++ b/play.py @@ -94,6 +94,11 @@ def play_aidungeon_2(): break elif action == "quit": exit() + elif action == "revert": + story_manager.story.actions = story_manager.story.actions[:-1] + story_manager.story.results = story_manager.story.results[:-1] + print("Last action reverted. ") + print(story_manager.story.results[-1]) if action != "":