From 03d1d8fed68a8c32968f6e7bfe6bb8034d25ad51 Mon Sep 17 00:00:00 2001 From: Nick Walton Date: Tue, 19 Nov 2019 13:26:12 -0700 Subject: [PATCH] update --- play.py | 2 +- story/custom_story.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/play.py b/play.py index 3ad231b..ef3f419 100644 --- a/play.py +++ b/play.py @@ -16,7 +16,7 @@ def select_game(): context, prompt = make_custom_story() else: - game = options["choice"] + game = options[choice] prompt = get_story_start(game) context = get_context(game) diff --git a/story/custom_story.py b/story/custom_story.py index 2c67d75..5ef25fc 100644 --- a/story/custom_story.py +++ b/story/custom_story.py @@ -26,7 +26,7 @@ def make_custom_story(): character = data["settings"][setting_key]["characters"][character_key] context = "You are " + name + ", a " + character_key + " " + setting_description + \ - "You have a " + character["item1"] + " and a " + character["item2"] + "." + "You have a " + character["item1"] + " and a " + character["item2"] + ". " prompt_num = np.random.randint(0,len(character["prompts"])) prompt = character["prompts"][prompt_num]