Skip to content

Commit

Permalink
Update scripts.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnewland authored Jul 7, 2024
1 parent 91becb9 commit 9fb377f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }
};
}

Expand Down

0 comments on commit 9fb377f

Please sign in to comment.