added revert

This commit is contained in:
Nick Walton committed 2019-11-25 18:07:24 -07:00
1 parent 4e63628924
commit d9a151f97b
1 file changed
+5
+5
View File
@@ -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 != "":