add critical success

main
Dozens B. McCuzzins 2022-06-27 08:26:00 -06:00
parent e4f6d674df
commit 69e4c7fabe
1 changed files with 3 additions and 1 deletions

View File

@ -442,7 +442,9 @@ const handleRiskOutput = ({ high, pool, stress }) => {
out.innerText += ' ' + pool.join(', ') out.innerText += ' ' + pool.join(', ')
out.innerText += '\nHighest: ' out.innerText += '\nHighest: '
out.innerText += ' ' + high + ' = ' 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.' ? ' Bad. Things get worse. Take a condition.'
: (high < 6) : (high < 6)
? ' Mixed. Partial success, or success with complication' ? ' Mixed. Partial success, or success with complication'