mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
Develop (#14)
* various small changes * various small changes * update * update * update * update * update * auto save
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user