add critical success

main
dozens 3 months ago
parent e4f6d674df
commit 69e4c7fabe
  1. 4
      index.html

@ -442,7 +442,9 @@ const handleRiskOutput = ({ high, pool, stress }) => {
out.innerText += ' ' + pool.join(', ')
out.innerText += '\nHighest: '
out.innerText += ' ' + high + ' = '
out.innerText += (high < 4)
out.innerText += (pool.filter(d => d === 6).length > 1)
? ` Wow, that's a CRITICAL SUCCESS!!`
: (high < 4)
? ' Bad. Things get worse. Take a condition.'
: (high < 6)
? ' Mixed. Partial success, or success with complication'

Loading…
Cancel
Save