* various small changes

* various small changes

* update

* update

* update

* update

* update

* auto save
This commit is contained in:
Nick Walton
2019-12-05 13:16:14 -07:00
committed by GitHub
parent 9036ee9964
commit 9aad02c164
2 changed files with 10 additions and 7 deletions
+6
View File
@@ -97,9 +97,15 @@ def play_aidungeon_2():
tcflush(sys.stdin, TCIFLUSH)
action = input("> ")
if action == "restart":
rating = input("Please rate the story quality from 1-10: ")
rating_float = float(rating)
story_manager.story.rating = rating_float
break
elif action == "quit":
rating = input("Please rate the story quality from 1-10: ")
rating_float = float(rating)
story_manager.story.rating = rating_float
exit()
elif action == "nosaving":
+4 -7
View File
@@ -32,13 +32,10 @@ class Story():
def __del__(self):
if self.upload_story:
rating = input("Please rate the story quality from 1-10: ")
try:
rating_float = float(rating)
self.rating = rating_float
self.save_to_storage()
except:
pass
self.save_to_storage()
console_print("Game saved.")
console_print("To load the game, type 'load' and enter the following ID: " + self.uuid)
def init_from_dict(self, story_dict):
self.story_start = story_dict["story_start"]