Skip to content

Commit

Permalink
4 > 3
Browse files Browse the repository at this point in the history
  • Loading branch information
qualityshepherd committed Aug 1, 2024
1 parent c438ce5 commit 6ab0aee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ export function d6 (numDie = 1) {
export async function spark () {
const spark = await getJsonData('./src/data/spark.json')
const randSparks = []
while (randSparks.length < 3) {
while (randSparks.length < 4) {
randSparks.push(spark.random())
// eslint-disable-next-line no-new
new Set(randSparks)
new Set(randSparks) // only unique
}
return `${randSparks[0]}, ${randSparks[1]}, ${randSparks[2]}`
return randSparks.join(', ')
}

export async function apothecary () {
Expand Down

0 comments on commit 6ab0aee

Please sign in to comment.