mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-21 12:30:46 +08:00
update
This commit is contained in:
+3
-6
@@ -31,15 +31,12 @@ def play_unconstrained():
|
||||
print("\n")
|
||||
console_print(str(story_manager.story))
|
||||
while (True):
|
||||
action = ""
|
||||
while(action == ""):
|
||||
action = input("> ")
|
||||
action = input("> ")
|
||||
|
||||
if action = "":
|
||||
action = None
|
||||
else:
|
||||
if action != "":
|
||||
action = " You " + action + ". "
|
||||
action = first_to_second_person(action)
|
||||
|
||||
result = story_manager.act(action)
|
||||
console_print("\n\n" + action + result)
|
||||
|
||||
|
||||
@@ -96,8 +96,7 @@ class StoryManager():
|
||||
class UnconstrainedStoryManager(StoryManager):
|
||||
|
||||
def act(self, action_choice):
|
||||
if action_choice is None:
|
||||
action_choice = ""
|
||||
|
||||
result = self.generate_result(action_choice)
|
||||
self.story.add_to_story(action_choice, result)
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user