Closed rrcampbell-exe closed 3 years ago
On feature/vengeance branch, justifications like "for their brother's murder" currently appear after any value chosen, not just "vengeance."
It appears the conditional (if-statement) is not reading condition ((valueSet[randomIndex]) = "vengeance") properly.
RESOLVED
Issue was that code read as if (valueSet[randomIndex] = "vengeance")
when it needed to read as if (valueSet[randomIndex] === "vengeance")
Description The goal is to create a display that, when "vengeance" is called in valueSet, appends another string like "vengeance for his brother's murder."
Possible Solutions
valueSet[randomIndex]
into venge-related function