From 9fb377f66ef41797471f5344c910fc247f13ae66 Mon Sep 17 00:00:00 2001 From: Jason Newland Date: Sun, 7 Jul 2024 17:00:08 +0900 Subject: [PATCH] Update scripts.js --- scripts.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts.js b/scripts.js index 9988106..b5542d9 100644 --- a/scripts.js +++ b/scripts.js @@ -9,9 +9,10 @@ function generateSimplePrompt() { const location = getRandomElement(locations); const obstacle = getRandomElement(obstacles); const character = getRandomElement(characters); + const twist = getRandomElement(twists); return { - prompt: `The party ${goal} ${location} ${obstacle}, aided by ${character}.`, - cards: { character, goal, location, obstacle, twist: "" } + prompt: `The party ${goal} ${location} ${obstacle}, aided by ${character}. ${twist}`, + cards: { character, goal, location, obstacle, twist } }; }