Fixed dice excluding last face, increased max rolls to 20. Increased default number of Hunt guesses. Increased default Riddle timeout.

This commit is contained in:
Niels Simenon
2022-11-02 00:34:03 +01:00
parent 6adb443aff
commit 46c61e2a92
3 changed files with 11 additions and 11 deletions

View File

@@ -29,7 +29,7 @@ function onCommand(args, context) {
}
const results = Array.from({ length: rolls }, () => {
const result = crypto.randomInt(1, faces);
const result = crypto.randomInt(1, faces + 1);
// using U+2003 Em Space after dice to create double space that doesn't get filtered in SChat
return `${style.grey(dieFaces[result - 1] || '☐')} ${style.bold(result)}`; // eslint-disable-line no-irregular-whitespace