mirror of
https://github.com/wassname/Clover-Edition.git
synced 2026-09-09 11:13:26 +08:00
update
This commit is contained in:
+5
-2
@@ -35,8 +35,11 @@ def play_unconstrained():
|
||||
while(action == ""):
|
||||
action = input("> ")
|
||||
|
||||
action = " You " + action + ". "
|
||||
action = first_to_second_person(action)
|
||||
if action = "":
|
||||
action = None
|
||||
else:
|
||||
action = " You " + action + ". "
|
||||
action = first_to_second_person(action)
|
||||
result = story_manager.act(action)
|
||||
console_print("\n\n" + action + result)
|
||||
|
||||
|
||||
@@ -96,6 +96,8 @@ 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